file_locker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLocker

type FileLocker struct {
	LocksDir string
	// contains filtered or unexported fields
}

func NewFileLocker

func NewFileLocker(locksDir string) (*FileLocker, error)

func (*FileLocker) Acquire

func (l *FileLocker) Acquire(lockName string, opts lockgate.AcquireOptions) (bool, lockgate.LockHandle, error)

func (*FileLocker) Release

func (l *FileLocker) Release(lockHandle lockgate.LockHandle) error

Jump to

Keyboard shortcuts

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