lock

package
v2.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 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)

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