processlock

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyFilePath = errors.New("empty file path")
	ErrInvalidFile   = errors.New("invalid File pointer")
)

ErrInvalidFile represents invalid file pointer

View Source
var ErrMockFileLock = errors.New("mock filelock error")

ErrMockFileLock - mock filelock error

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Lock() error
	Unlock() error
}

func NewFileLock

func NewFileLock(fileAbsPath string) (Interface, error)

func NewMockFileLock

func NewMockFileLock(fail bool) Interface

Jump to

Keyboard shortcuts

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