Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = new(config)
全局配置变量
Functions ¶
Types ¶
type CasbinConfig ¶
type CasbinConfig struct {
ModelPath string `mapstructure:"model-path" json:"modelPath"`
}
type LogsConfig ¶
type LogsConfig struct { Level zapcore.Level `mapstructure:"level" json:"level"` Path string `mapstructure:"path" json:"path"` MaxSize int `mapstructure:"max-size" json:"maxSize"` MaxBackups int `mapstructure:"max-backups" json:"maxBackups"` MaxAge int `mapstructure:"max-age" json:"maxAge"` Compress bool `mapstructure:"compress" json:"compress"` }
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.