Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBurglar

func NewBurglar(logger lager.Logger, lockDB db.LockDB, lockPick LockPick, clock clock.Clock, checkInterval time.Duration, metronClient loggingclient.IngressClient) burglar

func NewLockPick

func NewLockPick(lockDB db.LockDB, clock clock.Clock, metronClient loggingclient.IngressClient) lockPick

Types

type LockPick

type LockPick interface {
	RegisterTTL(logger lager.Logger, lock *db.Lock)
	ExpirationCounts() (uint32, uint32) // return lock and presence expirations, resp.
}

    go:generate counterfeiter . LockPick

    Directories

    Path Synopsis
    Code generated by counterfeiter.
    Code generated by counterfeiter.