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.
Click to show internal directories.
Click to hide internal directories.