# 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.
No description provided by the author
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.
No description provided by the author
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.
NewNode builds and returns new Node instance.
NewNodeInfos returns an instance of NodeInfo.
RemoveSlot return a new list of slot where a specified slot have been removed.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
defaultHashMaxSlots higher value of slot as slots start at 0, total number of slots is defaultHashMaxSlots+1.
DefaultRedisPort define the default Redis Port.
ErrNotFound cannot find a node to connect to.
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.
No description provided by the author
No description provided by the author
No description provided by the author
RedisLinkStateConnected redis connection status connected.
RedisLinkStateDisconnected redis connection status disconnected.
No description provided by the author
RedisMasterRole redis role master.
No description provided by the author
RedisSlaveRole redis role slave.
RedisSyncing Redis server syncing in in progress with master.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
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).
MigratingSlot represents a migrating slot (slot + migrating to node id).
Node Represent a Redis Node.
NodeInfos representation of a node info, i.e.
SlotRange represent a Range of slots.

# Interfaces

IAdmin redis cluster admin interface.
IAdminConnections interface representing the map of admin connections to redis cluster nodes.

# Type aliases

ConfigSignature Represents the slots of each node.
Define customtype int.
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.
No description provided by the author
Redis Status Redis server status.
Slot represent a Redis Cluster slot.
SlotSlice attaches the methods of sort.Interface to []string, sorting in increasing order.