Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipTTLValidateForTests ¶ added in v0.8.0
func SkipTTLValidateForTests()
SkipTTLValidateForTests turns off Bucket TTL validation for testing
Types ¶
type Backoff ¶
type Backoff interface { // Duration returns the time to sleep for the nth invocation Duration(n int) time.Duration }
Backoff controls the interval of campaigns
type Option ¶
type Option func(o *options)
Option configures the election system
func OnCampaign ¶
OnCampaign is called each time a campaign is done by the leader or a candidate
func WithBackoff ¶
WithBackoff will use the provided Backoff timer source to decrease campaign intervals over time
func WithReplicator ¶ added in v0.7.0
WithReplicator sets the replicator name for monitoring
Click to show internal directories.
Click to hide internal directories.