package
0.4.1
Repository: https://github.com/docker/deploykit.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Always is a trivial implementation that asserts the current instance to always be the leader (or not).
NewPoller returns a detector implementation given the poll interval and function that polls.

# Constants

Leader means the current node / instance is a leader.
NotLeader means the current node is not a leader.
Unknown indicates some exception happened while determining leadership.

# Structs

Leadership is a struct that captures the leadership state, possibly error if exception occurs.

# Interfaces

Detector is the interface for determining whether this instance is a leader.

# Type aliases

CheckLeaderFunc is all that a special backend needs to implement.
Status indicates leadership status.