Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultLeaseTTL etcd lease time-to-live in seconds DefaultLeaseTTL int64 = 10 ClusterAlive State = iota ClusterLeaving ClusterLeft ClusterJoining )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster manages a set of member and the consistent hash ring as well.
func (*Cluster) LocalIsWorker ¶
LocalIsWorker checks if the local node is the worker which has responsibility for the given string key.
func (*Cluster) LocalMember ¶
LocalMember returns the local node member.
Click to show internal directories.
Click to hide internal directories.