|
|
@ -347,22 +347,14 @@ type RPC struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Redis struct {
|
|
|
|
type Redis struct {
|
|
|
|
Disable bool `yaml:"-"`
|
|
|
|
Disable bool `yaml:"-"`
|
|
|
|
Address []string `yaml:"address"`
|
|
|
|
Address []string `yaml:"address"`
|
|
|
|
Username string `yaml:"username"`
|
|
|
|
Username string `yaml:"username"`
|
|
|
|
Password string `yaml:"password"`
|
|
|
|
Password string `yaml:"password"`
|
|
|
|
RedisMode string `yaml:"redisMode"`
|
|
|
|
ClusterMode bool `yaml:"clusterMode"`
|
|
|
|
DB int `yaml:"db"`
|
|
|
|
DB int `yaml:"db"`
|
|
|
|
MaxRetry int `yaml:"maxRetry"`
|
|
|
|
MaxRetry int `yaml:"maxRetry"`
|
|
|
|
PoolSize int `yaml:"poolSize"`
|
|
|
|
PoolSize int `yaml:"poolSize"`
|
|
|
|
SentinelMode Sentinel `yaml:"sentinelMode"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Sentinel struct {
|
|
|
|
|
|
|
|
MasterName string `yaml:"masterName"`
|
|
|
|
|
|
|
|
SentinelAddrs []string `yaml:"sentinelsAddrs"`
|
|
|
|
|
|
|
|
RouteByLatency bool `yaml:"routeByLatency"`
|
|
|
|
|
|
|
|
RouteRandomly bool `yaml:"routeRandomly"`
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type BeforeConfig struct {
|
|
|
|
type BeforeConfig struct {
|
|
|
|