Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackoffDelay = 5 * time.Second MaxMsgSize = 1 << 11 // 2048 ClientRequestTimeout = 15 * time.Second ServerRequestTimeout = 5 * time.Second )
List of gRCP configuration values.
Variables ¶
This section is empty.
Functions ¶
func PrintJSONConfig ¶
func PrintJSONConfig() error
PrintJSONConfig prints the services configuration in JSON format.
Types ¶
type Config ¶
type Config struct {
ConfigFile string `toml:"-"`
// List of services
Alfa Service `toml:"alfa"`
Beta Service `toml:"beta"`
Omega Service `toml:"omega"`
}
Config represents the global micro-service configuration.
type Server ¶
type Server struct {
Host string
Port int
Address string
Clients []string `json:",omitempty"`
MicroServices []string `toml:"micro_services" json:",omitempty"`
IsGateway bool `toml:"is_gateway" json:",omitempty"`
GatewayPort int `toml:"gateway_port" json:",omitempty"`
}
Server represents a server configuration struct.
Click to show internal directories.
Click to hide internal directories.