lock

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

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
}

func CreateLock

func CreateLock(lockDirPath string) (Lock, error)

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