lock

package
v2.34.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLock

func CreateLock(lockDirPath string) (unlock func() error, err error)

func GetLastLockTimestamp added in v2.23.0

func GetLastLockTimestamp(lockDirPath string) (int64, error)

Types

type Lock

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

func (*Lock) Unlock

func (lock *Lock) Unlock() error

Removes the lock file so other process can continue.

type Locks

type Locks []Lock

func (Locks) Len

func (locks Locks) Len() int

func (Locks) Less

func (locks Locks) Less(i, j int) bool

func (Locks) Swap

func (locks Locks) Swap(i, j int)

Jump to

Keyboard shortcuts

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