Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppConfig = new(App)
Functions ¶
Types ¶
type App ¶
type App struct { Name string `mapstructure:"Name"` Mode string `mapstructure:"Mode"` Host string `mapstructure:"Host"` Port int `mapstructure:"Port"` Version string `mapstructure:"Version"` ImagePrefixUrl string `mapstructure:"ImagePrefixUrl"` ImageSavePath string `mapstructure:"ImageSavePath"` ImageMaxSize string `mapstructure:"ImageMaxSize"` ImageAllowExt string `mapstructure:"ImageAllowExt"` *LogConfig `mapstructure:"log"` *MySqlConfig `mapstructure:"mysql"` *RedisConfig `mapstructure:"redis"` }
type MySqlConfig ¶
type MySqlConfig struct { Type string `mapstructure:"Type"` User string `mapstructure:"User"` Password string `mapstructure:"Password"` Host string `mapstructure:"Host"` Port int `mapstructure:"Port"` DB string `mapstructure:"DB"` TablePrefix string `mapstructure:"TablePrefix"` MaxOpenConns int `mapstructure:"MaxOpenConns"` MaxIdleConns int `mapstructure:"MaxIdleConns"` }
type RedisConfig ¶
type RedisConfig struct { Host string `mapstructure:"Host"` Port int `mapstructure:"Port"` Password string `mapstructure:"Password"` DB int `mapstructure:"DB"` PoolSize int `mapstructure:"PoolSize"` MaxOpenConns int `mapstructure:"MaxOpenConns"` MaxIdleConns int `mapstructure:"MaxIdleConns"` Timeout int `mapstructure:"Timeout"` }
Click to show internal directories.
Click to hide internal directories.