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) (int32, error) GetNumberSentinelSlavesInMemory(ip string) (int32, error) ResetSentinel(ip string) error GetSlaveOf(ip, password string) (string, error) IsMaster(ip, password string) (bool, error) MonitorRedis(ip, monitor, quorum, password string) error MakeMaster(ip, password string) error MakeSlaveOf(ip, masterIP, password string) error GetSentinelMonitor(ip string) (string, error) SetCustomSentinelConfig(ip string, configs []string) error SetCustomRedisConfig(ip string, configs []string, password string) error SlaveIsReady(ip, password string) (bool, error) }
Client defines the functions neccesary to connect to redis and sentinel to get or set what we nned
Click to show internal directories.
Click to hide internal directories.