locker

package
v0.0.0-...-1c3f716 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db storage.DB, clock clock.Clock, logger logger.Logger, ownerName string, lease time.Duration, heartbeat time.Duration,
	warnAfter time.Duration, lockIdPrefix string, maxClockSkew time.Duration, warnChanManager lock.WarnChanManager) locker.Locker

Create a new Locker. WarnChanManager will be closed when the Locker is closed. Other params: See factory.NewLocker.

func NewWithFencing

func NewWithFencing(db storage.FencingDB, clock clock.Clock, logger logger.Logger, ownerName string, lease time.Duration, heartbeat time.Duration,
	warnAfter time.Duration, lockIdPrefix string, maxClockSkew time.Duration, warnChanManager lock.WarnChanManager) locker.Locker

Create a new Locker with fencing support. WarnChanManager will be closed when the Locker is closed. Other params: See factory.NewLocker.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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