Versions in this module Expand all Collapse all v0 v0.9.3 Aug 28, 2020 Changes in this version + func LoadCustomFromApollo(customCfg interface{}) error + func LoadFromApollo() type ApolloConfig + Settings apollo.Conf type OpenAPIConfig + BasePath string + Enabled bool + Host string + Schemas []string v0.9.2 Jul 19, 2020 v0.9.1 Jul 19, 2020 Changes in this version type RedisClusterConfig + Addrs []string + MaxRedirects int + ReadOnly bool + RouteByLatency bool + RouteRandomly bool v0.9.0 Jul 18, 2020 Changes in this version + func IsApolloEnable() bool + func IsNil() bool + func LoadCustomFromFile(fileName string, customCfg interface{}) error + func LoadFileEnvKey() string + func LoadFromEnvFile() + func LoadFromFile(fileName string) error + func NotNil() bool + func SetLoadFileEnvKey(key string) + type ApolloConfig struct + Conf apollo.Conf + Enable bool + type AppConfig struct + Env string + Name string + Version string + func App() AppConfig + type Config struct + Apollo ApolloConfig + App AppConfig + Databases []*DatabaseConfig + Logging LoggingConfig + Mails []MailConfig + OpenAPI OpenAPIConfig + Redis RedisConfig + Server ServerConfig + type DatabaseConfig struct + DSN string + Dialect string + MaxIdle int + MaxLifetime int + MaxOpen int + ShowSQL bool + func Database() *DatabaseConfig + func Databases() []*DatabaseConfig + type LoggingConfig struct + CallerFirst bool + Level uint32 + NoColors bool + ReportCaller bool + func Logging() LoggingConfig + type MailConfig struct + IMAPAddr string + Password string + SMTPAddr string + TLS bool + Username string + func Mails() []MailConfig + type OpenAPIConfig struct + Spec struct{ ... } + Tags []OpenapiTagConfig + UI OpenapiUIConfig + func Openapi() OpenAPIConfig + type OpenapiTagConfig struct + Description string + Name string + type OpenapiUIConfig struct + API string + Dist string + Entrypoint string + type RedisClusterConfig struct + type RedisCommonConfig struct + DB int + DialTimeout string + IdleCheckFrequency string + IdleTimeout string + MaxConnAge string + MaxRetries int + MaxRetryBackoff string + MinIdleConns int + MinRetryBackoff string + Password string + PoolSize int + PoolTimeout string + ReadTimeout string + Username string + WriteTimeout string + type RedisConfig struct + Cluster RedisClusterConfig + Mode string + Sentinel RedisSentinelConfig + func Redis() RedisConfig + type RedisSentinelConfig struct + Addrs []string + Master string + Password string + Username string + type RedisSimpleConfig struct + Addr string + type ServerConfig struct + Port int + func Server() ServerConfig