package
0.14.2
Repository: https://github.com/shreyassrivatsan/m3.git
Documentation: pkg.go.dev

# Packages

Package campaign encapsulates the state of a campaign.
Package election provides a wrapper around a subset of the Election functionality of etcd's concurrency package with error handling for common failure scenarios such as lease expiration.

# Functions

NewOptions returns an instance of leader options.
NewService creates a new leader service client based on an etcd client.

# Variables

ErrCampaignInProgress is returned when a call to Campaign() is made while the caller is either already (a) campaigning or (b) the leader.
ErrNoLeader is returned when a call to Leader() is made to an election with no leader.

# Interfaces

Options describe options for creating a leader service.