Versions in this module Expand all Collapse all v1 v1.0.0 Jul 16, 2021 Changes in this version + type Elector struct + func NewElector(servers []string, timeout time.Duration, electionZnode string, ...) (*Elector, error) + func (e *Elector) AckLeader(info string) error + func (e *Elector) CreateProposal() (string, error) + func (e *Elector) TryBeLeader() (bool, string, <-chan zk.Event, error)