pidlock

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

Lock represents a pid lock

func NewLock

func NewLock(lockFilePath string) (*Lock, error)

NewLock returns a new lock

func (*Lock) Lock

func (l *Lock) Lock(optBackoff ...backoff.BackOff) error

Lock will lock with retries.

func (*Lock) Unlock

func (l *Lock) Unlock() error

Unlock will unlock the pid lockfile

Jump to

Keyboard shortcuts

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