github.com/therealbill/libredis@v0.0.0-20161227004305-7d50abda5ccf/structures/cluster.go (about)

     1  package structures
     2  
     3  // <id> <ip:port> <flags> <master> <ping-sent> <pong-recv> <config-epoch> <link-state> <slot> <slot> ... <slot>
     4  type ClusterNode struct {
     5  	Id          string
     6  	Address     string
     7  	Flags       []string
     8  	Master      string
     9  	PingSent    int64
    10  	PongRecv    int64
    11  	ConfigEpoch int
    12  	LinkStateUp bool
    13  	Slots       []ClusterSlot
    14  }
    15  
    16  type ClusterSlot struct {
    17  	Start      int64
    18  	End        int64
    19  	MasterHost string
    20  	MasterPort int64
    21  	Slaves     []string
    22  }