Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Name string `mapstructure:"name" json:"name" yaml:"name"` Mode string `mapstructure:"mode" json:"mode" yaml:"mode"` Port int `mapstructure:"port" json:"port" yaml:"port"` StartTime string `mapstructure:"start_time" json:"start_time" yaml:"start_time"` MachineID int `mapstructure:"machine_id" json:"machine_id" yaml:"machine_id"` Locale string `mapstructure:"locale" json:"locale" yaml:"locale"` }
type LogConfig ¶
type LogConfig struct { Level string `mapstructure:"level" json:"level" yaml:"level"` FileName string `mapstructure:"filename" json:"filename" yaml:"filename"` GinFileName string `mapstructure:"ginFilename" json:"ginFilename" yaml:"ginFilename"` MaxSize int `mapstructure:"max_size" json:"max_size" yaml:"max_size"` MaxAge int `mapstructure:"mode" json:"mode" yaml:"mode"` MaxBackUps int `mapstructure:"max_age" json:"max_age" yaml:"max_age"` }
type MysqlConfig ¶
type MysqlConfig struct { Host string `mapstructure:"host" json:"host" yaml:"host"` Port int `mapstructure:"port" json:"port" yaml:"port"` User string `mapstructure:"user" json:"user" yaml:"user"` PassWord string `mapstructure:"password" json:"password" yaml:"password"` DBName string `mapstructure:"dbname" json:"dbname" yaml:"dbname"` }
type RedisConfig ¶
type WebConfig ¶
type WebConfig struct { AppConfig AppConfig `mapstructure:"app" json:"app" yaml:"app"` LogConfig LogConfig `mapstructure:"log" json:"log" yaml:"log"` MysqlConfig MysqlConfig `mapstructure:"mysql" json:"mysql" yaml:"mysql"` RedisConfig RedisConfig `mapstructure:"redis" json:"redis" yaml:"redis"` }
Click to show internal directories.
Click to hide internal directories.