lockfile

package
v0.3.1-rc.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 8 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