Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { JwtSecret string `mapstructure:"jwt-secret" yaml:"jwt-secret"` PageSize int `mapstructure:"page-size" yaml:"page-size"` PrefixUrl string `mapstructure:"prefix-url" yaml:"prefix-url"` RuntimeRootPath string `mapstructure:"runtime-root-path" yaml:"runtime-root-path"` ImageSavePath string `mapstructure:"image-save-path" yaml:"image-save-path"` ImageMaxSize int `mapstructure:"image-max-size" yaml:"image-max-size"` ImageAllowExts []string `mapstructure:"image-allow-exts" yaml:"image-allow-exts"` ExportSavePath string `mapstructure:"export-save-path" yaml:"export-save-path"` QrCodeSavePath string `mapstructure:"qrcode-save-path" yaml:"qrcode-save-path"` FontSavePath string `mapstructure:"font-save-path" yaml:"font-save-path"` LogSavePath string `mapstructure:"log-save-path" yaml:"log-save-path"` LogSaveName string `mapstructure:"log-save-name" yaml:"log-save-name"` LogFileExt string `mapstructure:"log-file-ext" yaml:"log-file-ext"` TimeFormat string `mapstructure:"time-format" yaml:"time-format"` }
type Config ¶
type Config struct { App App `mapstructure:"app" yaml:"app"` Database Database `mapstructure:"database" yaml:"database"` Redis Redis `mapstructure:"redis" yaml:"redis"` Server Server `mapstructure:"server" yaml:"server"` Zap Zap `mapstructure:"zap" yaml:"zap"` Wechat Wechat `mapstructure:"wechat" yaml:"wechat"` Express Express `mapstructure:"express" yaml:"express"` }
type Database ¶
type Database struct { Type string `mapstructure:"type" yaml:"type"` User string `mapstructure:"user" yaml:"user"` Password string `mapstructure:"password" yaml:"password"` Host string `mapstructure:"host" yaml:"host"` Name string `mapstructure:"name" yaml:"name"` TablePrefix string `mapstructure:"table-prefix" yaml:"table-prefix"` }
type Redis ¶
type Redis struct { Host string `mapstructure:"host" yaml:"host"` Password string `mapstructure:"password" yaml:"password"` MaxIdle int `mapstructure:"max-idle" yaml:"max-idle"` MaxActive int `mapstructure:"max-active" yaml:"max-active"` IdleTimeout time.Duration `mapstructure:"idle-timeout" yaml:"idle-timeout"` }
type Wechat ¶
type Wechat struct { AppID string `mapstructure:"app_id" yaml:"app_id"` //appid AppSecret string `mapstructure:"app_secret" yaml:"app_secret"` //appsecret Token string `mapstructure:"token" yaml:"token"` //token EncodingAESKey string `mapstructure:"encoding_aes_key" yaml:"encoding_aes_key"` //EncodingAESKey }
type Zap ¶
type Zap struct { LogFilePath string `mapstructure:"log-filepath" yaml:"log-filepath"` LogInfoFileName string `mapstructure:"log-info-filename" yaml:"log-info-filename"` LogWarnFileName string `mapstructure:"log-warn-filename" yaml:"log-warn-filename"` LogFileExt string `mapstructure:"log-fiile-ext" yaml:"log-fiile-ext"` }
Click to show internal directories.
Click to hide internal directories.