Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetNumberSentinelsInMemory(ip string, auth *util.AuthConfig) (int32, error)
GetNumberSentinelSlavesInMemory(ip string, auth *util.AuthConfig) (int32, error)
ResetSentinel(ip string, auth *util.AuthConfig) error
GetSlaveMasterIP(ip string, auth *util.AuthConfig) (string, error)
IsMaster(ip string, auth *util.AuthConfig) (bool, error)
MonitorRedis(ip string, monitor string, quorum string, auth *util.AuthConfig) error
MakeMaster(ip string, auth *util.AuthConfig) error
MakeSlaveOf(ip string, masterIP string, auth *util.AuthConfig) error
GetSentinelMonitor(ip string, auth *util.AuthConfig) (string, error)
SetCustomSentinelConfig(ip string, configs []string, auth *util.AuthConfig) error
SetCustomRedisConfig(ip string, configs map[string]string, auth *util.AuthConfig) error
GetAllRedisConfig(rClient *rediscli.Client) (map[string]string, error)
}
Client defines the functions necessary to connect to redis and sentinel to get or set what we need
Click to show internal directories.
Click to hide internal directories.