Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = new(config)
全局配置变量
Functions ¶
Types ¶
type LogsConfig ¶
type LogsConfig struct {
LogConfigStr string `mapstructure:"log-config-str" json:"logconfigstr"`
}
type MysqlConfig ¶
type MysqlConfig struct { Username string `mapstructure:"username" json:"username"` Password string `mapstructure:"password" json:"password"` Database string `mapstructure:"database" json:"database"` Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` Query string `mapstructure:"query" json:"query"` LogMode bool `mapstructure:"log-mode" json:"logMode"` TablePrefix string `mapstructure:"table-prefix" json:"tablePrefix"` Charset string `mapstructure:"charset" json:"charset"` Collation string `mapstructure:"collation" json:"collation"` }
type RateLimitConfig ¶
type SystemConfig ¶
type SystemConfig struct { Mode string `mapstructure:"mode" json:"mode"` UrlPathPrefix string `mapstructure:"url-path-prefix" json:"urlPathPrefix"` Port int `mapstructure:"port" json:"port"` InitData bool `mapstructure:"init-data" json:"initData"` RSAPublicKey string `mapstructure:"rsa-public-key" json:"rsaPublicKey"` RSAPrivateKey string `mapstructure:"rsa-private-key" json:"rsaPrivateKey"` RSAPublicBytes []byte `mapstructure:"-" json:"-"` RSAPrivateBytes []byte `mapstructure:"-" json:"-"` }
Click to show internal directories.
Click to hide internal directories.