Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Conf = new(AppConfig) //引用类型
)
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Name string `mapstructure:"name"` Mode string `mapstructure:"mode"` Version string `mapstructure:"version"` Port int `mapstructure:"port"` StartTime string `mapstructure:"start_time"` MachineID int64 `mapstructure:"machine_id"` *LogConfig `mapstructure:"log"` *MysqlConfig `mapstructure:"mysql"` *RedisConfig `mapstructure:"redis"` }
type MysqlConfig ¶
type MysqlConfig struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` User string `mapstructure:"user"` Password string `mapstructure:"password"` Dbname string `mapstructure:"dbname"` MaxOpenConns string `mapstructure:"max_open_conns"` MaxIdleConns string `mapstructure:"max_idle_conns"` }
Click to show internal directories.
Click to hide internal directories.