Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Vip = viper.New() ConfigFile = "" // ServerSetting global config ServerSetting = new(YamlSetting) )
Functions ¶
Types ¶
type Log ¶
type Log struct { AppName string `yaml:"appName"` Development bool `yaml:"development"` Level string `yaml:"level"` LogFileDir string `yaml:"logFileDir"` InfoFileName string `yaml:"infoFileName"` WarnFileName string `yaml:"warnFileName"` ErrorFileName string `yaml:"errorFileName"` DebugFileName string `yaml:"debugFileName"` MaxAge int `yaml:"maxAge"` MaxBackups int `yaml:"maxBackups"` MaxSize int `yaml:"maxSize"` }
Log log parameters
type YamlSetting ¶
YamlSetting global constants are defined and configured by the user according to the file conf.yaml in conf
Click to show internal directories.
Click to hide internal directories.