Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Vip = viper.New() ConfigFile = "" ServerSetting = new(YamlSetting) )
Functions ¶
Types ¶
type Database ¶
type Database struct { DbType string `yaml:"dbType"` Host string `yaml:"host"` Port int `yaml:"port"` DbName string `yaml:"dbName"` Username string `yaml:"username"` Password string `yaml:"password"` Prefix string `yaml:"prefix"` Charset string `yaml:"charset"` MaxIdleConns int `yaml:"maxIdleConns"` MaxOpenConns int `yaml:"maxOpenConns"` Level string `yaml:"level"` SslMode string `yaml:"sslMode"` TimeZone string `yaml:"timeZone"` }
type YamlSetting ¶
Click to show internal directories.
Click to hide internal directories.