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, 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) MakeSlaveOfWithPort(ip string, masterIP string, masterPort string, password string) error
- func (_m *Client) MonitorRedis(ip string, monitor string, quorum string, password string) error
- func (_m *Client) MonitorRedisWithPort(ip string, monitor string, port 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) MakeSlaveOfWithPort ¶ added in v1.1.0
func (_m *Client) MakeSlaveOfWithPort(ip string, masterIP string, masterPort string, password string) error
MakeSlaveOfWithPort provides a mock function with given fields: ip, masterIP, masterPort, password
func (*Client) MonitorRedis ¶
MonitorRedis provides a mock function with given fields: ip, monitor, quorum, password
func (*Client) MonitorRedisWithPort ¶ added in v1.1.0
func (_m *Client) MonitorRedisWithPort(ip string, monitor string, port string, quorum string, password string) error
MonitorRedisWithPort provides a mock function with given fields: ip, monitor, port, 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