Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2019 Changes in this version + func LoadGlobal(fpath string) error + 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 + Gorm Gorm + HTTP HTTP + I18n i18n + JWTAuth JWTAuth + Log Log + LogGormHook LogGormHook + Monitor Monitor + MySQL MySQL + Permission Permission + Postgres Postgres + RateLimiter RateLimiter + Redis Redis + Root Root + RunMode string + Sqlite3 Sqlite3 + Store string + Swagger string + WWW string + func Global() *Config + func Parse(fpath string) (*Config, error) + func (c *Config) IsDebugMode() bool + type Gorm struct + DBType string + Debug bool + EnableAutoMigrate bool + MaxIdleConns int + MaxLifetime int + MaxOpenConns int + TablePrefix string + type HTTP struct + Host string + Port int + ShutdownTimeout int + type JWTAuth struct + Expired int + FilePath string + RedisDB int + RedisPrefix string + SigningKey string + SigningMethod string + Store string + type Log struct + EnableHook bool + Format string + Hook 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 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 Permission struct + Data string + Enable bool + 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 + Dir string + Name string + Path string + func (a Sqlite3) DSN() string