package
0.7.2
Repository: https://github.com/lucasbfernandes/go-client.git
Documentation: pkg.go.dev

# Functions

New creates a new latch primitive.
WithID sets the leader latch instance identifier.

# Constants

EventChanged indicates the latch term changed.
Type is the leader latch type.

# Structs

Event is an latch event.
Leadership is a leadership term A term is guaranteed to have a monotonically increasing, globally unique ID.

# Interfaces

Client provides an API for creating Latches.
Latch provides distributed leader latch.
Option is a leader latch option.

# Type aliases

EventType is the type of an Latch event.