lockfile

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcInfo added in v0.2.0

func ProcInfo() (pid int, host string, process string)

ProcInfo returns info about the current process.

Types

type LockFile

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

LockFile holds the lockfile.

func Create

func Create(ctx context.Context, filePath string) (*LockFile, error)

Create initializes a new lock file.

func (*LockFile) Close

func (lf *LockFile) Close() error

Close closes the lockfile.

func (*LockFile) String added in v0.2.0

func (lf *LockFile) String() string

Jump to

Keyboard shortcuts

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