Versions in this module Expand all Collapse all v1 v1.0.21 Aug 17, 2018 v1.0.20 Jul 5, 2018 Changes in this version + type Election struct + func (e *Election) Await(ctx context.Context) error + func (e *Election) Close(ctx context.Context) error + func (e *Election) Observe(ctx context.Context) (context.Context, error) + func (e *Election) Resign(ctx context.Context) error + type Factory struct + func NewFactory(instanceID string, client *clientv3.Client, lockDir string) *Factory + func (f *Factory) NewElection(ctx context.Context, treeID int64) (election.Election, error)