This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"iconUrl":"http://localhost:8081/logo.png","name":"Ton Games","url":"http://localhost:8081"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"http_server": { | |
"port": 8080 | |
}, | |
"items": [ | |
{ | |
"name": "telegram", | |
"connector_config": { | |
"response_type": "HTML", | |
"url": "https://www.google.com/search?q=telegram+{{{FromInput=value}}}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package marshal | |
import ( | |
"bytes" | |
"github.com/golang/protobuf/jsonpb" | |
structType "github.com/golang/protobuf/ptypes/struct" | |
"github.com/stretchr/testify/assert" | |
"testing" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"google.golang.org/grpc" | |
"net" | |
agentPb "github.com/squzy/squzy_generated/generated/agent/proto/v1" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package health | |
import ( | |
"github.com/gin-gonic/gin" | |
"net/http" | |
) | |
func Health(appName string) func(c *gin.Context){ | |
return func(c *gin.Context) { | |
c.JSON(http.StatusOK, gin.H{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_go//go:def.bzl", "go_library") | |
go_library( | |
name = "health", | |
srcs = ["health.go"], | |
importpath = "go_monogrepo/packages/shared/handlers/health", | |
visibility = ["//visibility:public"], | |
deps = [ | |
"@com_github_gin_gonic_gin//:go_default_library" | |
] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_go//go:def.bzl", "go_library") | |
go_library( | |
name = "router", | |
srcs = ["router.go"], | |
importpath = "go_monogrepo/packages/main_app/router", | |
visibility = ["//visibility:public"], | |
deps = [ | |
"//packages/shared/handlers/health:health", | |
"@com_github_gin_gonic_gin//:go_default_library" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package router | |
import ( | |
"github.com/gin-gonic/gin" | |
"go_monogrepo/packages/shared/handlers/health" | |
) | |
func GetEngine() *gin.Engine { | |
r := gin.New() | |
r.Use(gin.Recovery()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test") | |
go_binary( | |
name = "main_app", | |
srcs = ["main.go"], | |
importpath = "go_monogrepo/packages/main", | |
deps = [ | |
"//packages/main_app/router:router" | |
], | |
) | |
go_test( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@bazel_gazelle//:def.bzl", "gazelle") | |
gazelle(name = "gazelle") |
NewerOlder