Documentation ¶ Index ¶ type Config func New() *Config func (conf *Config) Etcd() *etcd.Config func (conf *Config) IsProduct() bool func (conf *Config) LoadFile(path string) error func (conf *Config) Mysql() *mysql.Config func (conf *Config) Redis() *redis.Config func (conf *Config) Server() *serverConf Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { *viper.Viper // contains filtered or unexported fields } Config 配置 func New ¶ func New() *Config New 实例 func (*Config) Etcd ¶ added in v0.9.14 func (conf *Config) Etcd() *etcd.Config etcd func (*Config) IsProduct ¶ added in v0.9.16 func (conf *Config) IsProduct() bool func (*Config) LoadFile ¶ func (conf *Config) LoadFile(path string) error LoadFile 加载配置文件 func (*Config) Mysql ¶ func (conf *Config) Mysql() *mysql.Config mysql func (*Config) Redis ¶ func (conf *Config) Redis() *redis.Config Redis func (*Config) Server ¶ func (conf *Config) Server() *serverConf Server Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.