lockfile

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LockFile

func LockFile(file *os.File) error

Types

type Lock

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

func NewLock

func NewLock(lockfile, payload string) (*Lock, error)

func (*Lock) Lock

func (l *Lock) Lock(payload string) error

func (*Lock) Payload

func (l *Lock) Payload() (string, error)

func (*Lock) UnLock

func (l *Lock) UnLock() (erra error)

Jump to

Keyboard shortcuts

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