Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MaxConnections uint32 `json:"max_connections"` ClientTimeout string `json:"client_timeout"` ConnectionTimeout string `json:"connection_timeout"` Balancer string `json:"balancer"` Protocol string `json:"protocol"` Port uint32 `json:"port"` Scheme string `json:"scheme"` ProxyHeaders map[string]string `json:"proxy_headers"` Servers []Server `json:"servers"` FailedRequestsLimit uint32 `json:"failed_requests_limit"` ServerScheme string `json:"server_scheme"` CertFilePath string `json:"cert_file_path"` KeyFilePath string `json:"key_file_path"` Discovery string `json:"discovery"` }
Config provides definition of the config
func MakeDefaultConfig ¶
func MakeDefaultConfig() *Config
MakeDefaultConfig provides loading of default conig
func ReadConfig ¶
ReadConfig provides redaing of the config
func ReadConsulConfig ¶
ReadConsulConfig provides reading of config from Comsul
Click to show internal directories.
Click to hide internal directories.