Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppDir string Service string Env string RedisCache *RedisRing `yaml:"redis_cache"` PGMain *Postgres `yaml:"pg_main"` Uptrace struct { DSN string `yaml:"dsn"` } `yaml:"uptrace"` SecretKey string `yaml:"secret_key"` }
func LoadConfig ¶
func LoadConfigEnv ¶
type Postgres ¶
type Postgres struct { Addr string Database string User string Password string SSL bool MaxRetries int `yaml:"max_retries"` DialTimeout time.Duration `yaml:"dial_timeout"` ReadTimeout time.Duration `yaml:"read_timeout"` WriteTimeout time.Duration `yaml:"write_timeout"` PoolSize int `yaml:"pool_size"` MinIdleConns int `yaml:"min_idle_conns"` MaxConnAge time.Duration `yaml:"max_conn_age"` PoolTimeout time.Duration `yaml:"pool_timeout"` IdleTimeout time.Duration `yaml:"idle_timeout"` ConnectionPoolPort string `yaml:"connection_pool_port"` }
type RedisRing ¶
type RedisRing struct { Addrs map[string]string Password string DB int MaxRetries int `yaml:"max_retries"` PoolSize int `yaml:"pool_size"` PoolTimeout time.Duration `yaml:"pool_timeout"` IdleTimeout time.Duration `yaml:"idle_timeout"` DialTimeout time.Duration `yaml:"dial_timeout"` ReadTimeout time.Duration `yaml:"read_timeout"` WriteTimeout time.Duration `yaml:"write_timeout"` }
Click to show internal directories.
Click to hide internal directories.