Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Captcha struct { Width int `mapstructure:"width" json:"width" yaml:"width"` Height int `mapstructure:"height" json:"height" yaml:"height"` Num int `mapstructure:"num" json:"num" yaml:"num"` SecretKey string `mapstructure:"secret-key" json:"secret-key" yaml:"secret-key"` Expired int64 `mapstructure:"expired" json:"expired" yaml:"expired"` }
type Config ¶
type Config struct { Debug bool `mapstructure:"debug" json:"debug" yaml:"debug"` AppName string `mapstructure:"appName" json:"appName" yaml:"appName"` Template []map[string]string `mapstructure:"template" json:"template" yaml:"template"` Auth Auth `mapstructure:"auth" json:"auth" yaml:"auth"` Logger Logger `mapstructure:"logger" json:"logger" yaml:"logger"` Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"` Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"` JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"` Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"` }
type Logger ¶
type Logger struct { Level string `mapstructure:"level" json:"level" yaml:"level"` Debug bool `mapstructure:"debug" json:"debug" yaml:"debug"` LinkName string `mapstructure:"link-name" json:"link-name" yaml:"link-name"` Encoding string `mapstructure:"encoding" json:"encoding" yaml:"encoding"` OutputDir string `mapstructure:"output-dir" json:"output-dir" yaml:"output-dir"` MaxAge time.Duration `mapstructure:"max-age" json:"max-age" yaml:"max-age"` RotationTime time.Duration `mapstructure:"rotation-time" json:"rotation-time" yaml:"rotation-time"` }
type Mysql ¶
type Mysql struct { Host string `mapstructure:"host" json:"host" yaml:"host"` Port string `mapstructure:"port" json:"port" yaml:"port"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` Dbname string `mapstructure:"dbname" json:"dbname" yaml:"dbname"` Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` }
Click to show internal directories.
Click to hide internal directories.