Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendConfig ¶
type BackendConfig struct {
PdAddr string `toml:"pd-address"`
}
BackendConfig pd config
type Config ¶
type Config struct { Appname string `toml:"appname"` Host string `toml:"host"` Port uint `toml:"port"` MaxConn uint `toml:"max_connection"` Auth string `toml:"auth"` Backend BackendConfig `toml:"backend"` Log LogConfig `toml:"log"` Metric metricutil.MetricConfig `toml:"metric"` RunExpGc bool }
Config file
func (*Config) LoadConfig ¶
LoadConfig load config file from path
func (*Config) ToLogConfig ¶
ToLogConfig to log config
Click to show internal directories.
Click to hide internal directories.