Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr string `json:"addr" toml:"addr"` LogLevel string `json:"log_level" toml:"log_level"` SkipAuth bool `json:"skip_auth" toml:"skip_auth"` StatusAddr string `json:"status_addr" toml:"status_addr"` Socket string `json:"socket" toml:"socket"` ReportStatus bool `json:"report_status" toml:"report_status"` StorePath string `json:"store_path" toml:"store_path"` Store string `json:"store" toml:"store"` SlowThreshold int `json:"slow_threshold" toml:"slow_threshold"` QueryLogMaxlen int `json:"query_log_max_len" toml:"query_log_max_len"` TCPKeepAlive bool `json:"tcp_keep_alive" toml:"tcp_keep_alive"` }
Config contains configuration options.
func GetGlobalConfig ¶
func GetGlobalConfig() *Config
GetGlobalConfig returns the global configuration for this server. It should store configuration from command line and configuration file. Other parts of the system can read the global configuration use this function.
Click to show internal directories.
Click to hide internal directories.