type AppConf struct {
Name string `mapstructure:"name"`
Mode string `mapstructure:"mode"`
Port int `mapstructure:"port"`
StartTime string `mapstructure:"startTime"`
MachineId int64 `mapstructure:"machineId"`
}
type DbConf struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
DbName string `mapstructure:"dbname"`
MaxOpenConn int `mapstructure:"maxOpenConn"`
MaxIdleConn int `mapstructure:"maxIdleConn"`
}
type LogConf struct {
Level string `mapstructure:"level"`
Filename string `mapstructure:"filename"`
MaxSize int `mapstructure:"maxSize"`
MaxAge int `mapstructure:"maxAge"`
MaxBackups int `mapstructure:"maxBackups"`
}
type RedisConf struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
Password string `mapstructure:"password"`
Db int `mapstructure:"db"`
PoolSize int `mapstructure:"poolSize"`
}