Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `env:"REDIS_HOST,required"` Port string `env:"REDIS_PORT,required"` Password string `env:"REDIS_PASSWORD" envdefault:""` DB int `env:"REDIS_DB,required"` TTL time.Duration `env:"REDIS_TTL,required"` DialTimeout time.Duration `env:"REDIS_DIAL_TIMEOUT" envdefault:"10s"` UseTls bool `env:"REDIS_USE_TLS" envdefault:"false"` MaxIdleConns int `env:"REDIS_MAX_IDLE_CONNS,required"` MinIdleConns int `env:"REDIS_MIN_IDLE_CONNS,required"` }
Click to show internal directories.
Click to hide internal directories.