Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigDir = "./source/configs/" ConfigFile = "configServer.json" Secret = "qfdQjmVLiW" )
Основные константы
View Source
const (
AuthGuard = "authguard"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `json:"host"` Port int32 `json:"port"` DBS map[string]*DbConfig `json:"dbs"` Handlers map[string]*HandlerConfig `json:"handlers"` Observers []*HandlerConfig `json:"observers"` Services []*HandlerConfig `json:"services"` }
Config модель конфига
type HandlerConfig ¶
type HandlerConfig struct { Type HandlerType `json:"type"` Host string `json:"host"` Port int32 `json:"port"` Key string `json:"key"` Group coreHelper.GroupsType `json:"group"` User string `json:"user"` Password string `json:"password"` IsTSL bool `json:"is_tsl"` }
type HandlerType ¶
type HandlerType string
const ( TCP HandlerType = "tcp" MQTT HandlerType = "mqtt" WS HandlerType = "ws" GRPC HandlerType = "grpc" )
Click to show internal directories.
Click to hide internal directories.