Versions in this module Expand all Collapse all v0 v0.7.0 Apr 22, 2024 Changes in this version type WebConfig + SensitiveURLPaths map[string]struct{} + func (conf *WebConfig) IsSensitiveURLPath(path string) bool v0.6.0 Jan 11, 2024 Changes in this version + func DecryptSecretValue(value string) (string, error) + type AppConfig struct + Ext ExtConfig + GOMAXPROCS int + GraceTermination *GraceTerminationConfig + Group string + Name string + Profile string + func (c *AppConfig) IsProfileLocal() bool + func (conf *AppConfig) SetDefaultValues() + type Config struct + App *AppConfig + CronConfig *CronConfig + DB *DbConfig + Log *LogConfig + Metrics *MetricsConfig + RPC *RPCConfig + Redis *RedisConfig + Web *WebConfig + func MustLoadConfig(confPath string) *Config + func MustLoadConfigCustom(confPath string, customConfig interface{ ... }) *Config + func MustNewConfig(bytes []byte) *Config + func MustNewConfigCustom(bytes []byte, customConfig interface{ ... }) *Config + func (conf *Config) SetDefaultValues() + type CronConfig struct + CronJobs []*CronJobConfig + SkipIfStillRunning *bool + func (conf *CronConfig) SetDefaultValues() + type CronJobConfig struct + Name string + Schedule string + type DbConfig struct + Charset string + Database string + Host string + MaxIdle int32 + MaxIdleTime time.Duration + MaxLifetime time.Duration + MaxOpen int32 + Password string + Port int32 + PrepareStmt *bool + SkipDefaultTransaction *bool + SlowQueryThreshold time.Duration + Username string + func (conf *DbConfig) SetDefaultValues() + type ExtConfig map[string]interface + func (e ExtConfig) BoolVal(key string) bool + func (e ExtConfig) IntVal(key string) int + func (e ExtConfig) StrVal(key string) string + type GraceTerminationConfig struct + GraceTerminationPeriod time.Duration + func (conf *GraceTerminationConfig) SetDefaultValues() + type LogConfig struct + CallerPrint bool + Format string + Level string + LogFilename string + LogPath string + PrettyPrint bool + TimestampFormat string + func (conf *LogConfig) SetDefaultValues() + type MetricsConfig struct + BuildInfoCollector *bool + GoCollector *bool + Host string + MetricsPath string + Port int32 + ProcessCollector *bool + func (conf *MetricsConfig) SetDefaultValues() + type RPCClientConfig struct + Addr string + InsecureSkipVerify bool + MaxCallRecvMsgSize int + MaxCallSendMsgSize int + Plaintext *bool + func (conf *RPCClientConfig) SetDefaultValues() + type RPCConfig struct + Clients map[string]*RPCClientConfig + Host string + MaxRecvMsgSize int64 + Port int32 + RegisterHealthServer *bool + RegisterReflectionServer *bool + func (conf *RPCConfig) SetDefaultValues() + type RedisClusterConfig struct + Addrs []string + MaxRedirects int32 + type RedisConfig struct + Cluster *RedisClusterConfig + Database uint8 + Host string + IdleTimeout time.Duration + MaxActive int32 + MaxConnLifetime time.Duration + MaxIdle int32 + Password string + Port int32 + Sentinel *RedisSentinelConfig + TestOnBorrow bool + func (conf *RedisConfig) SetDefaultValues() + type RedisSentinelConfig struct + Addrs []string + Master string + type SecretsConfig interface + DecryptSecrets func() error + SecretKey func() string + type SwaggerConfig struct + Enabled bool + URL string + type WebConfig struct + Host string + MaxMultipartMemory int64 + Port int32 + Swagger *SwaggerConfig + func (conf *WebConfig) SetDefaultValues()