Versions in this module Expand all Collapse all v1 v1.0.0 Mar 5, 2023 Changes in this version + var ErrBusy = TemporaryError("Locked by other process") + var ErrBusyOnOtherHost = TemporaryError("Locked by other process on another host") + var ErrDeadOwner = errors.New("lockfile contains pid of process not existent on this system anymore") + var ErrInvalidPid = errors.New("lockfile contains invalid pid for system") + var ErrNeedAbsPath = errors.New("lockfiles must be given as absolute path names") + var ErrNotExist = TemporaryError("Lockfile created, but doesn't exist") + var ErrRogueDeletion = errors.New("lockfile owned by me has been removed unexpectedly") + type Lockfile string + func New(path string) (Lockfile, error) + func (l Lockfile) GetOwner() (int, string, error) + func (l Lockfile) TryLock() error + func (l Lockfile) Unlock() error + type TemporaryError string + func (t TemporaryError) Error() string + func (t TemporaryError) Temporary() bool