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: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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