geo-smart-system/system/constants.go

20 lines
393 B
Go
Raw Permalink Normal View History

2020-01-04 00:44:42 +00:00
package system
import "fmt"
const (
// Tile 38
2022-09-10 06:46:30 +00:00
Tile38Address = "tile38_database"
2020-01-04 00:44:42 +00:00
Tile38Port = "9851"
// Server Port
ServerPort = "8080"
)
func GetTile38ConnectionAddress() string {
return fmt.Sprintf("%s:%s", Tile38Address, Tile38Port)
}
func GetTile38HookURL(hookID string) string {
return fmt.Sprintf("http://%s/detection/call?hook=%s", GetTile38ConnectionAddress(), hookID)
}