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"` LifeTime int64 `mapstructure:"lifetime" json:"lifetime" yaml:"lifetime"` }
type Config ¶
type Config struct { Debug bool `mapstructure:"debug" json:"debug" yaml:"debug"` Timezone string `mapstructure:"timezone" json:"timezone" yaml:"timezone"` AppName string `mapstructure:"appName" json:"appName" yaml:"appName"` Session Session `mapstructure:"session" json:"session" yaml:"session"` 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"` Encoding string `mapstructure:"encoding" json:"encoding" yaml:"encoding"` OutputDir string `mapstructure:"output-dir" json:"output-dir" yaml:"output-dir"` MaxAge int `mapstructure:"maxage" json:"maxage" yaml:"maxage"` MaxSize int `mapstructure:"maxsize" json:"maxsize" yaml:"maxsize"` MaxBackups int `mapstructure:"maxbackups" json:"maxbackups" yaml:"maxbackups"` Compress bool `mapstructure:"compress" json:"compress" yaml:"compress"` Filename string `mapstructure:"filename" json:"filename" yaml:"filename"` }
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"` MaxOpenConns int `mapstructure:"maxOpenConns" json:"maxOpenConns" yaml:"maxOpenConns"` MaxIdleConns int `mapstructure:"maxIdleConns" json:"maxIdleConns" yaml:"maxIdleConns"` ConnMaxLifeTime int `mapstructure:"connMaxLifeTime" json:"connMaxLifeTime" yaml:"connMaxLifeTime"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.