Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leader ¶
type Leader struct {
// contains filtered or unexported fields
}
Leader uses zookeeper to conduct leadership elections and expose whether or not the current node is a leader to applications.
func NewLeader ¶
NewLeader creates a new leader election and starts the election process. Only a single level zk path is supported at this time; node creation will fail if a multi-level node like '/foo/bar' is used.
Click to show internal directories.
Click to hide internal directories.