Documentation ¶
Index ¶
- type AddSlaveToPodRequest
- type Client
- func (c *Client) AddPod(name, ip string, port, quorum int, auth string) (common.RedisPod, error)
- func (c *Client) AddSentinel(address string) (bool, error)
- func (c *Client) AddSlaveToPod(podname, slaveip string, slaveport int, slaveauth string) (bool, error)
- func (c *Client) BalancePod(podname string) error
- func (c *Client) CheckPodAuth(podname string) (map[string]bool, error)
- func (c *Client) GetPod(podname string) (common.RedisPod, error)
- func (c *Client) GetSentinelsForPod(address string) (int, []string, error)
- func (c *Client) RemovePod(podname string) error
- func (c *Client) ValidatePodSentinels(podname string) (map[string]bool, error)
- type NewPodRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSlaveToPodRequest ¶
AddSlaveToPodRequest is a struct for passing slave+pod information over the wire
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddPod ¶
AddPod(NewPodRequest) will take the information in the PodRequest and instruct Redskull to add it to it's monitor list.
func (*Client) AddSentinel ¶
AddSentinel(address) will instuct Redskull to add the sentinel at the given address
func (*Client) AddSlaveToPod ¶
func (c *Client) AddSlaveToPod(podname, slaveip string, slaveport int, slaveauth string) (bool, error)
AddSlaveToPod is used to instruct Red skull to add a slave to the given pod.
func (*Client) BalancePod ¶
BalancePod will attempt to rebalance the pod's sentinels
func (*Client) CheckPodAuth ¶
CheckPodAuth has the server check it's authenticationn capability to the master and all attached slaves for the pod. It returns a map true/false for each IP in the pod. If the master can not be authed against it returns an empty map.
func (*Client) GetPod ¶
GetPod(podname) will return the common.RedisPod type for the given pod, if found.
func (*Client) GetSentinelsForPod ¶
GetSentinelsForPod(podname) returns the number and list of sentinels for the given podname