Documentation ¶
Index ¶
- type Client
- func (_m *Client) GetNumberSentinelSlavesInMemory(ip string) (int32, error)
- func (_m *Client) GetNumberSentinelsInMemory(ip string) (int32, error)
- func (_m *Client) GetSentinelMonitor(ip string) (string, error)
- func (_m *Client) GetSlaveOf(ip string, password string) (string, error)
- func (_m *Client) IsMaster(ip string, password string) (bool, error)
- func (_m *Client) MakeMaster(ip string, password string) error
- func (_m *Client) MakeSlaveOf(ip string, masterIP string, password string) error
- func (_m *Client) MonitorRedis(ip string, monitor string, quorum string, password string) error
- func (_m *Client) ResetSentinel(ip string) error
- func (_m *Client) SetCustomRedisConfig(ip string, configs []string, password string) error
- func (_m *Client) SetCustomSentinelConfig(ip string, configs []string) error
- func (_m *Client) SlaveIsReady(ip string, password string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) GetNumberSentinelSlavesInMemory ¶
GetNumberSentinelSlavesInMemory provides a mock function with given fields: ip
func (*Client) GetNumberSentinelsInMemory ¶
GetNumberSentinelsInMemory provides a mock function with given fields: ip
func (*Client) GetSentinelMonitor ¶
GetSentinelMonitor provides a mock function with given fields: ip
func (*Client) GetSlaveOf ¶
GetSlaveOf provides a mock function with given fields: ip, password
func (*Client) MakeMaster ¶
MakeMaster provides a mock function with given fields: ip, password
func (*Client) MakeSlaveOf ¶
MakeSlaveOf provides a mock function with given fields: ip, masterIP, password
func (*Client) MonitorRedis ¶
MonitorRedis provides a mock function with given fields: ip, monitor, quorum, password
func (*Client) ResetSentinel ¶
ResetSentinel provides a mock function with given fields: ip
func (*Client) SetCustomRedisConfig ¶
SetCustomRedisConfig provides a mock function with given fields: ip, configs, password
func (*Client) SetCustomSentinelConfig ¶
SetCustomSentinelConfig provides a mock function with given fields: ip, configs