# Packages
No description provided by the author
# Functions
AddSlots return a new list of slots after adding some slots in it, duplicates are removed.
BuildSlotSlice return a slice of all slots between this range.
Contains returns true if a node slice contains a node.
DecodeNodeInfos decode from the cmd output the Redis nodes info.
DecodeNodeStartTime decode from the cmd output the Redis instance info.
DecodeSlot parse a string representation of a slot slot.
DecodeSlotRange decode from a string a RangeSlot each entry can have 4 representations: * single slot: ex: 42 * slot range: ex: 42-52 * migrating slot: ex: [42->-67ed2db8d677e59ec4a4cefb06858cf2a1a89fa1] * importing slot: ex: [42-<-67ed2db8d677e59ec4a4cefb06858cf2a1a89fa1].
IsInconsistentError eturns true if the error is due to cluster inconsistencies.
IsNodeNotFoundedError returns true if the current error is a NodeNotFoundedError.
IsPartialError returns true if the error is due to partial data recovery.
LessByID compare 2 Nodes with there ID.
MoreByID compare 2 Nodes with there ID.
NewAdmin returns new AdminInterface instance at the same time it connects to all Redis Nodes thanks to the addrs list.
NewAdminConnections returns and instance of AdminConnectionsInterface.
NewClient build a client connection and connect to a redis address.
NewCluster builds and returns new Cluster instance.
NewClusterInfos returns an instance of ClusterInfos.
NewClusterInfosError returns an instance of cluster infos error.
NewDefaultNode builds and returns new defaultNode instance.
NewManager builds and returns new Manager instance.
NewNode builds and returns new Node instance.
NewNodeInfos returns an instance of NodeInfo.
RemoveSlots return a new list of slot where a list of slots have been removed, doesn't work if duplicates.
SlotRangesFromSlots return a slice of slot ranges from a slice of slots.
# Constants
ClusterInfosConsistent status of the cluster info: nodeinfos is complete and consistent between nodes.
ClusterInfosInconsistent status of the cluster info: nodesinfos is not consistent between nodes.
ClusterInfosPartial status of the cluster info: data is not complete (some nodes didn't respond).
ClusterInfosUnset status of the cluster info: no data set.
DefaultRedisPort define the default Redis Port.
ErrNotFound cannot find a node to connect to.
HashMaxSlots Numbers or Redis slots used for Key hashing.
NodeStatusFail Node is in FAIL state.
NodeStatusHandshake Untrusted node, we are handshaking.
NodeStatusNoAddr No address known for this node.
NodeStatusNoFlags no flags at all.
NodeStatusPFail Node is in PFAIL state.
RedisLinkStateConnected redis connection status connected.
RedisLinkStateDisconnected redis connection status disconnected.
ResetHard HARD mode for RESET command.
ResetSoft SOFT mode for RESET command.
# Variables
IsMasterWithNoSlot anonymous function for searching Master Node with no slot.
IsMasterWithSlot anonymous function for searching Master Node withslot.
IsSlave anonymous function for searching Slave Node.
# Structs
Admin wraps redis cluster admin logic.
AdminConnections connection map for redis cluster currently the admin connection is not threadSafe since it is only use in the Events thread.
AdminOptions optional options for redis admin.
Client structure representing a client connection to redis.
Cluster represents a Redis Cluster.
ClusterActionsInfo use to store information about current action on the Cluster.
ClusterInfos represents the node infos for all nodes of the cluster.
ClusterInfosError error type for redis cluster infos access.
ImportingSlot represents an importing slot (slot + importing from node id).
Manager regroups Function for managing a Redis Cluster.
MigratingSlot represents a migrating slot (slot + migrating to node id).
Node Represent a Redis Node.
NodeInfos representation of a node info, i.e.
OwnerWithStatus represents a node owner and the way it sees the slot.
SlotRange represent a Range of slots.
# Interfaces
AdminConnectionsInterface interface representing the map of admin connections to redis cluster nodes.
AdminInterface redis cluster admin interface.
ClientInterface redis client interface.
# Type aliases
ClusterInconsistencies structure representing inconsistencies in the cluster.
ConfigSignature Represents the slots of each node.
Error used to represent an error.
FindNodeFunc function for finding a Node it is use as input for GetNodeByFunc and GetNodesByFunc.
Nodes represent a Node slice.
OwneshipView map representing who owns a slot and who sees it.
Slot represent a Redis Cluster slot.
SlotSlice attaches the methods of sort.Interface to []string, sorting in increasing order.