William Petit
e66938f1d3
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
20 lines
392 B
Go
20 lines
392 B
Go
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: "",
|
|
}
|
|
}
|