Help us shape the future of Go! Take the 2026 Go Developer Survey

leaderelectionconfig

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLeaseDuration is the default lease duration for leader election
	DefaultLeaseDuration = 15 * time.Second
	// DefaultRenewDeadline is the default renew duration for leader election
	DefaultRenewDeadline = 10 * time.Second
	// DefaultRetryPeriod is the default retry period for leader election
	DefaultRetryPeriod = 2 * time.Second
)

Variables

This section is empty.

Functions

func BindFlags

BindFlags binds the common LeaderElectionCLIConfig flags to a flagset

func DefaultLeaderElectionConfiguration

func DefaultLeaderElectionConfiguration() options.LeaderElectionConfiguration

DefaultLeaderElectionConfiguration the default configurations used for leader election

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL