Versions in this module Expand all Collapse all v7 v7.0.1 Mar 28, 2021 v7.0.0 Aug 30, 2020 Changes in this version + var C = new(Config) + func MustLoad(fpaths ...string) + func PrintWithJSON() + type CORS struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + Enable bool + MaxAge int + type Captcha struct + Height int + Length int + RedisDB int + RedisPrefix string + Store string + Width int + type Casbin struct + AutoLoad bool + AutoLoadInternal int + Debug bool + Enable bool + Model string + type Config struct + CORS CORS + Captcha Captcha + Casbin Casbin + GZIP GZIP + Gorm Gorm + HTTP HTTP + JWTAuth JWTAuth + Log Log + LogGormHook LogGormHook + LogMongoHook LogMongoHook + Menu Menu + Monitor Monitor + MySQL MySQL + Postgres Postgres + PrintConfig bool + RateLimiter RateLimiter + Redis Redis + Root Root + RunMode string + Sqlite3 Sqlite3 + Swagger bool + WWW string + func (c *Config) IsDebugMode() bool + type GZIP struct + Enable bool + ExcludedExtentions []string + ExcludedPaths []string + type Gorm struct + DBType string + Debug bool + EnableAutoMigrate bool + MaxIdleConns int + MaxLifetime int + MaxOpenConns int + TablePrefix string + type HTTP struct + CertFile string + Host string + KeyFile string + MaxContentLength int64 + MaxLoggerLength int + Port int + ShutdownTimeout int + type JWTAuth struct + Enable bool + Expired int + FilePath string + RedisDB int + RedisPrefix string + SigningKey string + SigningMethod string + Store string + type Log struct + EnableHook bool + Format string + Hook LogHook + HookLevels []string + HookMaxBuffer int + HookMaxThread int + Level int + Output string + OutputFile string + type LogGormHook struct + DBType string + MaxIdleConns int + MaxLifetime int + MaxOpenConns int + Table string + type LogHook string + func (h LogHook) IsGorm() bool + func (h LogHook) IsMongo() bool + type LogMongoHook struct + Collection string + type Menu struct + Data string + Enable bool + type Monitor struct + Addr string + ConfigDir string + Enable bool + type MySQL struct + DBName string + Host string + Parameters string + Password string + Port int + User string + func (a MySQL) DSN() string + type Postgres struct + DBName string + Host string + Password string + Port int + SSLMode string + User string + func (a Postgres) DSN() string + type RateLimiter struct + Count int64 + Enable bool + RedisDB int + type Redis struct + Addr string + Password string + type Root struct + Password string + RealName string + UserName string + type Sqlite3 struct + Path string + func (a Sqlite3) DSN() string Other modules containing this package github.com/LyricTian/gin-admin/v6 github.com/LyricTian/gin-admin/v8