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 System ¶
type System struct { AppName string `yaml:"appName"` HttpAddr string `yaml:"httpAddr"` HttpPort string `yaml:"httpPort"` AllowIps string `yaml:"allowIps"` ConcurrencyQueue int `yaml:"concurrencyQueue"` ApiSignEnable bool `yaml:"apiSignEnable"` ApiKey string `yaml:"apiKey"` ApiSecret string `yaml:"apiSecret"` AuthSecret string `yaml:"authSecret"` EnableTls bool `yaml:"enableTls"` CaFile string `yaml:"caFile"` CertFile string `yaml:"certFile"` KeyFile string `yaml:"keyFile"` }
type YamlSetting ¶
Click to show internal directories.
Click to hide internal directories.