Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Type string `envconfig:"TYPE" json:"type"` InMem InMemConfig `envconfig:"INMEM" json:"inmem"` Redis RedisConfig `envconfig:"REDIS" json:"redis"` }
func ParseConfig ¶
type InMemConfig ¶
type InMemConfig struct {
QueueSize int `envconfig:"QUEUE_SIZE" json:"queue_size"`
}
type RedisConfig ¶
type RedisConfig struct {
Address string `envconfig:"ADDRESS" default:"127.0.0.1:6379" json:"address"`
}
Click to show internal directories.
Click to hide internal directories.