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