Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Do(cmd string, args ...interface{}) (interface{}, error)
- func (c *Client) Flush(cmd string, args ...interface{}) error
- func (c *Client) Info() (map[string]string, error)
- func (c *Client) InfoFull() (map[string]string, error)
- func (c *Client) MigrateSlot(slot int, target string) (int, error)
- func (c *Client) Receive() (interface{}, error)
- func (c *Client) Role() (string, error)
- func (c *Client) SetMaster(master string) error
- func (c *Client) SlotsInfo() (map[int]int, error)
- type Pool
- type Sentinel
- func (s *Sentinel) FlushConfig(sentinel string) error
- func (s *Sentinel) IsCancelled() bool
- func (s *Sentinel) Masters(groups map[int]bool, timeout time.Duration, sentinels ...string) map[int]string
- func (s *Sentinel) Monitor(masters map[int]string, quorum int, timeout time.Duration, sentinels ...string) error
- func (s *Sentinel) Subscribe(timeout time.Duration, sentinels ...string) bool
- func (s *Sentinel) Unmonitor(groups map[int]bool, timeout time.Duration, sentinels ...string) error
- func (s *Sentinel) WatchNode(gid int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosedPool = errors.New("use of closed redis pool")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Sentinel ¶
type Sentinel struct { context.Context Cancel context.CancelFunc // contains filtered or unexported fields }
func NewSentinel ¶
func NewSentinelAuth ¶
func (*Sentinel) FlushConfig ¶
func (*Sentinel) IsCancelled ¶
Click to show internal directories.
Click to hide internal directories.