Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinator ¶
Coordinator implements leader election systems backed by ZooKeeper.
func New ¶
func New(c *conf.CoordinatorZK) (*Coordinator, error)
New creates new ZooKeeper-backed coordinator.
func (*Coordinator) WaitUntilLeader ¶
func (coord *Coordinator) WaitUntilLeader() context.Context
WaitUntilLeader blocks until this coordinator instance becomes a leader.
Click to show internal directories.
Click to hide internal directories.