//
pkg.gl
Category
github.com/lucasbfernandes/go-client
pkg
client
election
package
0.7.2
Repository:
https://github.com/lucasbfernandes/go-client.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
7
Dependents
1
Files
316 SLOC
#
Functions
New
New creates a new election primitive.
WithID
WithID sets the election instance identifier.
#
Constants
EventChanged
EventChanged indicates the election term changed.
Type
Type is the election type.
#
Structs
Event
Event is an election event.
Term
Term is a leadership term A term is guaranteed to have a monotonically increasing, globally unique ID.
#
Interfaces
Client
Client provides an API for creating Elections.
Election
Election provides distributed leader election.
Option
Option is an election option.
#
Type aliases
EventType
EventType is the type of an Election event.