Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DebugMode bool `yaml:"DebugMode"` NeedPublishConfig bool `yaml:"NeedPublishConfig"` ServerPort int `yaml:"ServerPort"` CostCfg CostConfig `yaml:"CostConfig"` WriteDB DBConfig `yaml:"WriteDB"` ReadDB DBConfig `yaml:"ReadDB"` EtcdConfig *EtcdConfig `yaml:"EtcdConfig"` JwtToken JwtTokenConfig `yaml:"JwtToken"` }
var GlobalConfig *Config
type CostConfig ¶
type DBConfig ¶
type DBConfig struct { Name string `yaml:"Name"` Host string `yaml:"Host"` Port string `yaml:"Port"` User string `yaml:"User"` Password string `yaml:"Password"` Timeout string `yaml:"Timeout"` ReadTimeout string `yaml:"ReadTimeout"` WriteTimeout string `yaml:"WriteTimeout"` MaxIdleConns int `yaml:"MaxIdleConns"` MaxOpenConns int `yaml:"MaxOpenConns"` }
type EtcdConfig ¶
Click to show internal directories.
Click to hide internal directories.