lockfile

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 8 Imported by: 2

README

lockfile

Build Status Go Report Card GoDoc GitHub license gocover.io

Handle locking via pid files

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lockfile added in v0.1.0

type Lockfile string

Lockfile is a lock file

func NewLockfile

func NewLockfile(path string) (Lockfile, error)

NewLockfile returns a new Lockfile.

func (Lockfile) Get added in v0.1.0

func (p Lockfile) Get() (int, error)

Get the pid from the Lockfile.

func (Lockfile) Lock added in v0.1.0

func (p Lockfile) Lock() error

Lock the Lockfile.

func (Lockfile) Unlock added in v0.1.0

func (p Lockfile) Unlock() error

Unlock the Lockfile.

Jump to

Keyboard shortcuts

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