Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Do(cmd string, args ...interface{}) (interface{}, error)
- func (c *Client) Flush() error
- func (c *Client) Info() (map[string]string, error)
- func (c *Client) InfoFull() (map[string]string, error)
- func (c *Client) InfoKeySpace() (map[int]string, error)
- func (c *Client) MigrateSlot(slot int, target string) (int, error)
- func (c *Client) MigrateSlotAsync(slot int, target string, option *MigrateSlotAsyncOption) (int, error)
- func (c *Client) Receive() (interface{}, error)
- func (c *Client) Role() (string, error)
- func (c *Client) Select(database int) error
- func (c *Client) Send(cmd string, args ...interface{}) error
- func (c *Client) SetMaster(master string) error
- func (c *Client) Shutdown() error
- func (c *Client) SlotsInfo() (map[int]int, error)
- type InfoCache
- type MigrateSlotAsyncOption
- type MonitorConfig
- type Pool
- type Sentinel
- func (s *Sentinel) FlushConfig(sentinel string, timeout time.Duration) error
- func (s *Sentinel) IsCanceled() bool
- func (s *Sentinel) Masters(sentinels []string, timeout time.Duration) (map[int]string, error)
- func (s *Sentinel) MastersAndSlaves(sentinel string, timeout time.Duration) (map[string]*SentinelGroup, error)
- func (s *Sentinel) MastersAndSlavesClient(client *Client) (map[string]*SentinelGroup, error)
- func (s *Sentinel) MonitorGroups(sentinels []string, timeout time.Duration, config *MonitorConfig, ...) error
- func (s *Sentinel) NodeName(gid int) string
- func (s *Sentinel) RemoveGroups(sentinels []string, timeout time.Duration, groups map[int]bool) error
- func (s *Sentinel) RemoveGroupsAll(sentinels []string, timeout time.Duration) error
- func (s *Sentinel) Subscribe(sentinels []string, timeout time.Duration, onMajoritySubscribed func()) bool
- type SentinelGroup
- type SentinelMaster
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 Client struct { Addr string Auth string Database int LastUse time.Time Timeout time.Duration // contains filtered or unexported fields }
func (*Client) MigrateSlotAsync ¶
type InfoCache ¶
type MigrateSlotAsyncOption ¶
type MonitorConfig ¶
type Sentinel ¶
type Sentinel struct { context.Context Cancel context.CancelFunc Product, Auth string LogFunc func(format string, args ...interface{}) ErrFunc func(err error, format string, args ...interface{}) }
func NewSentinel ¶
func (*Sentinel) FlushConfig ¶
func (*Sentinel) IsCanceled ¶
func (*Sentinel) MastersAndSlaves ¶
func (*Sentinel) MastersAndSlavesClient ¶
func (s *Sentinel) MastersAndSlavesClient(client *Client) (map[string]*SentinelGroup, error)
func (*Sentinel) MonitorGroups ¶
func (*Sentinel) RemoveGroups ¶
func (*Sentinel) RemoveGroupsAll ¶
type SentinelGroup ¶
Click to show internal directories.
Click to hide internal directories.