Versions in this module Expand all Collapse all v0 v0.0.1 Jun 13, 2019 Changes in this version + const DefaultFailoverTimeout + const MinimumFailoverSize + const Port + const RoleMaster + const RoleReplica + type Address struct + Host string + Port string + func (a Address) String() string + type Failover interface + Disconnect func() + Reconfigure func() error + Refresh func() error + SelectMaster func() *Redis + type Redis struct + ConnectedReplicas int + MasterHost string + MasterLinkStatus string + MasterPort string + ReplicaPriority int + Replicas Redises + ReplicationOffset int + Role string + func (r *Redis) Ping() error + type Rediser interface + Ping func() error + type Redises []Redis + func NewInstances(password string, addrs ...Address) (Redises, error) + func (instances Redises) Disconnect() + func (instances Redises) Len() int + func (instances Redises) Less(i, j int) bool + func (instances Redises) Reconfigure() (err error) + func (instances Redises) Refresh() error + func (instances Redises) SelectMaster() *Redis + func (instances Redises) Swap(i, j int)