Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSettingS ¶
type AppSettingS struct { DefaultPageSize int MaxPageSize int LogSavePath string LogFileName string LogFileExt string UploadSavePath string UploadServerUrl string UploadImageMaxSize int UploadImageAllowExts []string UploadMarkdownAllowExts []string QrCodeSavePath string PrefixUrl string }
应用配置
type DatabaseSettingS ¶
type DatabaseSettingS struct { DBType string UserName string Password string Host string DBName string TablePrefix string Charset string ParseTime bool LogMode string MaxIdleConns int MaxOpenConns int }
数据库配置
type JwtSettingS ¶
type JwtSettingS struct { Secret string // 密钥 Issuer string // JWT的签发者 Expire time.Duration // 所签发的 JWT 过期时间,过期时间必须大于签发时间。 }
JWT配置
type Redis ¶
type Redis struct { Host string Password string MaxIdle int MaxActive int IdleTimeout time.Duration }
Redis配置
Click to show internal directories.
Click to hide internal directories.