Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Casbin ¶
type Casbin struct {
ModelPath string `mapstructure:"model-path" json:"modelPath" yaml:"model-path"`
}
type Email ¶
type Email struct { To string `mapstructure:"to" json:"to" yaml:"to"` Port int `mapstructure:"port" json:"port" yaml:"port"` From string `mapstructure:"from" json:"from" yaml:"from"` Host string `mapstructure:"host" json:"host" yaml:"host"` IsSSL bool `mapstructure:"is-ssl" json:"isSSL" yaml:"is-ssl"` Secret string `mapstructure:"secret" json:"secret" yaml:"secret"` Nickname string `mapstructure:"nickname" json:"nickname" yaml:"nickname"` }
type JWT ¶
type JWT struct {
SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
}
type Mysql ¶
type Mysql struct { Path string `mapstructure:"path" json:"path" yaml:"path"` Config string `mapstructure:"config" json:"config" yaml:"config"` Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"` MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"` LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"` }
type Qiniu ¶
type Qiniu struct { Zone string `mapstructure:"zone" json:"zone" yaml:"zone"` Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"` ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"` UseHTTPS bool `mapstructure:"use-https" json:"useHttps" yaml:"use-https"` AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"` SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"` UseCdnDomains bool `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"` }
type Server ¶
type Server struct { JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"` Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"` Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"` Email Email `mapstructure:"email" json:"email" yaml:"email"` Casbin Casbin `mapstructure:"casbin" json:"casbin" yaml:"casbin"` System System `mapstructure:"system" json:"system" yaml:"system"` Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"` // gorm Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"` // oss Local Local `mapstructure:"local" json:"local" yaml:"local"` Qiniu Qiniu `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"` }
type System ¶
type System struct { Env string `mapstructure:"env" json:"env" yaml:"env"` Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"` OssType string `mapstructure:"oss-type" json:"ossType" yaml:"oss-type"` UseMultipoint bool `mapstructure:"use-multipoint" json:"useMultipoint" yaml:"use-multipoint"` }
type Zap ¶
type Zap struct { Level string `mapstructure:"level" json:"level" yaml:"level"` Format string `mapstructure:"format" json:"format" yaml:"format"` Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` Director string `mapstructure:"director" json:"director" yaml:"director"` LinkName string `mapstructure:"link-name" json:"linkName" yaml:"link-name"` ShowLine bool `mapstructure:"show-line" json:"showLine" yaml:"showLine"` EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"` StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"` LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"` }
Click to show internal directories.
Click to hide internal directories.