Versions in this module Expand all Collapse all v1 v1.0.7 Apr 6, 2021 v1.0.6 Mar 17, 2021 Changes in this version type Logging + Version int v1.0.5 Mar 5, 2021 v1.0.4 Mar 5, 2021 v1.0.3 Mar 5, 2021 v1.0.2 Mar 4, 2021 v1.0.1 Mar 4, 2021 v1.0.0 Mar 4, 2021 Changes in this version + var C = new(Config) + func MustLoad(fpaths ...string) + func Print() + func PrintWithJSON() + type CORS struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + Enable bool + MaxAge int + type Casbin struct + Debug bool + Enable bool + type Config struct + CORS CORS + Casbin Casbin + GZIP GZIP + HTTP HTTP + I18N I18N + JWTAuth JWTAuth + Logging Logging + MiddleConfig MiddleConfig + MySQL MySQL + MySQL2 MySQL + Postgres Postgres + PrintConfig bool + RateLimiter RateLimiter + Redis Redis + RunMode string + Sqlite3 Sqlite3 + Swagger bool + WWW WWW + func (c *Config) IsDebugMode() bool + type GZIP struct + Enable bool + ExcludedExtentions []string + ExcludedPaths []string + type HTTP struct + CertFile string + ContextPath string + Host string + KeyFile string + MaxContentLength int64 + Port int + Prefixes []string + ShutdownTimeout int + type I18N struct + DBEnable bool + type JWTAuth struct + AuthzServer string + Enable bool + Expired int + FilePath string + LimitExpired int + LimitRefresh int + LimitTime int64 + RedisDB int + RedisPrefix string + SigningKey string + SigningMethod string + SigningSecret string + Store string + type Logging struct + EnableSyslogHook bool + Format string + Level string + Output string + OutputFile string + SyslogAddr string + SyslogNetwork string + SyslogTag string + type MiddleConfig struct + Logger bool + Recover 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 Sqlite3 struct + Path string + func (a Sqlite3) DSN() string + type WWW struct + Index string + RootDir string