# Functions
No description provided by the author
NewPgAdvisoryLock creates a new instance with specified lock ID, connection pool and lock timeout.
No description provided by the author
No description provided by the author
No description provided by the author
Blocking retry with a fixed delay.
# Structs
Elector is `Election` wrapper that provides cross-cutting concerns(eg.
PgAdvisoryLock is implementation of leader election based on PostgreSQL advisory locks.
RestElection is a REST interface allowing to plug in any external leader election mechanism.
ScheduledElector triggers election on scheduled interval.
ThroughputCalc runs on scheduled interval to calculate the throughput per second and sends results to a channel.
# Interfaces
Election defines an interface for adapter leader election.