package
Version:
v0.0.0-...-261bb52
Opens a new window with list of versions in this module.
Published: Jan 3, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Init is func to initial log config
type BaseConf struct {
PidFile string `mapstructure:"pid_file"`
PprofBind []string `mapstructure:"pprof_bind"`
PushChan int `mapstructure:"push_chan"`
PushChanSize int `mapstructure:"push_chan_size"`
IsDebug bool
MaxProc int
}
BaseConf is struct of base config
type CometConf struct {
Key int8 `mapstructure:"key"`
Addr string `mapstructure:"addr"`
}
CometConf is struct of comet RPC
type Config struct {
Base *BaseConf `mapstructure:"base"`
Log *log.Config `mapstructure:"log"`
Redis *RedisConf `mapstructure:"redis"`
Comet []CometConf `mapstructure:"comet"`
}
Config is struct of config struct
NewConfig is func to create a Config
type RedisConf struct {
Address string `mapstructure:"address"`
Password string `mapstructure:"password"`
DefaultDB int `mapstructure:"default_db"`
}
RedisConf is struct of redis config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.