Versions in this module Expand all Collapse all v1 v1.2.0 Jun 3, 2021 v1.1.0 Jun 2, 2021 v1.0.6 Jun 2, 2021 Changes in this version type Config + Ent EntConfig + InfluxDB InfluxDBConfig + RabbitMQ RabbitMQConfig + type EntConfig struct + DBType string + Debug bool + EnableAutoMigrate bool + MaxIdleConns int + MaxLifetime int + MaxOpenConns int + TablePrefix string + type InfluxDBConfig struct + Bucket string + Host string + Org string + Port int + Schema string + Token string + func (a InfluxDBConfig) DSN() string + type RabbitMQConfig struct + Host string + Password string + Port int + User string + func (a RabbitMQConfig) DSN() string v1.0.5 May 13, 2021 v1.0.4 Apr 28, 2021 v1.0.3 Apr 28, 2021 v1.0.2 Apr 28, 2021 Changes in this version + type CORSConfig struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + Enable bool + MaxAge int + type CaptchaConfig struct + BgColor *color.RGBA + Duration int + Fonts []string + Height int + Length int + NoiseCount int + RedisDB int + RedisPrefix string + ShowLineOptions int + Source string + Store string + Width int + type CasbinConfig struct + AutoLoad bool + AutoLoadInternal int + Debug bool + Enable bool + Model string + type Config struct + CORS CORSConfig + Captcha CaptchaConfig + Casbin CasbinConfig + GZIP GZIPConfig + Gorm GormConfig + HTTP HTTPConfig + JWTAuth JWTAuthConfig + Log LogConfig + LogGormHook LogGormHook + LogMongoHook LogMongoHook + Menu MenuConfig + Monitor MonitorConfig + MySQL MySQLConfig + Postgres PostgresConfig + RateLimiter RateLimiterConfig + Redis RedisConfig + Root RootConfig + Sqlite3 Sqlite3Config + System SystemConfig + func (c *Config) IsDebugMode() bool + type GZIPConfig struct + Enable bool + ExcludedExtentions []string + ExcludedPaths []string + type GormConfig struct + DBType string + Debug bool + EnableAutoMigrate bool + MaxIdleConns int + MaxLifetime int + MaxOpenConns int + TablePrefix string + type HTTPConfig struct + CertFile string + Host string + KeyFile string + MaxContentLength int64 + MaxLoggerLength int + Port int + ShutdownTimeout int + type JWTAuthConfig struct + Enable bool + Expired int + FilePath string + RedisDB int + RedisPrefix string + SigningKey string + SigningMethod string + Store string + type LogConfig 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 MenuConfig struct + Data string + Enable bool + type MonitorConfig struct + Addr string + ConfigDir string + Enable bool + type MySQLConfig struct + DBName string + Host string + Parameters string + Password string + Port int + User string + func (a MySQLConfig) DSN() string + type PostgresConfig struct + DBName string + Host string + Password string + Port int + SSLMode string + User string + func (a PostgresConfig) DSN() string + type RateLimiterConfig struct + Count int64 + Enable bool + RedisDB int + type RedisConfig struct + Addr string + Database int + Enable bool + Password string + type RootConfig struct + FirstName string + LastName string + Password string + RealName string + UserName string + type Sqlite3Config struct + Path string + func (a Sqlite3Config) DSN() string + type SystemConfig struct + PrintConfig bool + RunMode string + Swagger bool + WWW string