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 interface + Await func(ctx context.Context) error + Close func(ctx context.Context) error + Observe func(ctx context.Context) (context.Context, error) + Resign func(ctx context.Context) error + type Factory interface + NewElection func(ctx context.Context, treeID int64) (Election, error) + type NoopElection int64 + func (ne NoopElection) Await(ctx context.Context) error + func (ne NoopElection) Close(ctx context.Context) error + func (ne NoopElection) Observe(ctx context.Context) (context.Context, error) + func (ne NoopElection) Resign(ctx context.Context) error + type NoopFactory struct + func (nf NoopFactory) NewElection(ctx context.Context, treeID int64) (Election, error)