lockfile

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLocked   = errors.New("lockfile: locked")
	ErrOrphaned = errors.New("lockfile: orphaned")
	ErrClosed   = errors.New("lockfile: closed")
)

Functions

This section is empty.

Types

type LockFile

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

func New

func New(pathname string, mode os.FileMode) (lf *LockFile)

func (*LockFile) Acquire

func (lf *LockFile) Acquire() (err error)

func (*LockFile) Clear

func (lf *LockFile) Clear() (err error)

func (*LockFile) Release

func (lf *LockFile) Release() (err error)

func (*LockFile) Write

func (lf *LockFile) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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