Versions in this module Expand all Collapse all v0 v0.1.0 Feb 27, 2019 Changes in this version + type Config struct + Cache *ConfigCache + Core *ConfigCore + Db *ConfigDb + Log *ConfigLog + Mail *ConfigMail + func Init(filePath string) (*Config, error) + func LoadConfig(filePath string) (*Config, error) + type ConfigAutoTLS struct + Enabled bool + Folder string + Host string + type ConfigCache struct + Redis *ConfigCacheRedis + Timeout int32 + Type string + type ConfigCacheRedis struct + DB int + Host string + KeyPrefix string + Password string + Port int + type ConfigCore struct + AutoTLS *ConfigAutoTLS + Enabled bool + Host string + JwtSecret string + MaxPingCount int + Mode string + Name string + Port string + TLS *ConfigTLS + type ConfigDb struct + Charset string + ConnMaxLifeTime int + DbName string + Dialect string + Host string + LogMode bool + MaxIdleConns int + MaxOpenConns int + Password string + Port string + TablePrefix string + Unix string + Username string + type ConfigLog struct + Color bool + Debug bool + Pretty bool + Text bool + Trace bool + type ConfigMail struct + Enable bool + Password string + Port int + Smtp string + Username string + type ConfigTLS struct + CertPath string + KeyPath string + Port string