leader

package
v1.0.606 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLeader

func IsLeader(ctx context.Context, leaseName string) (bool, error)

func OnElection

func OnElection(ctx context.Context, leaseName string, fn func(isLeader bool))

Types

This section is empty.

Jump to

Keyboard shortcuts

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