Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMap ¶
func ToMap(nodes []PaxosNodeStatus) map[string]PaxosNodeStatus
Types ¶
type PaxosNode ¶
type PaxosNode struct { Pod string `json:"pod,omitempty"` Role string `json:"role,omitempty"` Generation int64 `json:"generation,omitempty"` Set string `json:"set,omitempty"` Index int `json:"index,omitempty"` }
PaxosNode records the node information of the paxos node.
type PaxosNodeStatus ¶
Click to show internal directories.
Click to hide internal directories.