package config const ( RedisModeSimple = "simple" RedisModeSentinel = "sentinel" RedisModeCluster = "cluster" ) type RedisConfig struct { Adresses InterpolatedStringSlice `yaml:"addresses"` Master InterpolatedString `yaml:"master"` } func NewDefaultRedisConfig() RedisConfig { return RedisConfig{ Adresses: InterpolatedStringSlice{"localhost:6379"}, Master: "", } }