leader

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Leader

type Leader struct {
	// contains filtered or unexported fields
}

func NewLeader

func NewLeader(
	locker *lock.Locker,
	session *session.Session,
	watcher *watcher.Watcher,
	logger *zap.Logger,
	cfg config.Config,
) *Leader

func (*Leader) IsLeader

func (l *Leader) IsLeader() bool

func (*Leader) Start

func (l *Leader) Start(ctx context.Context) error

func (*Leader) Stop

func (l *Leader) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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