lockfile

package
v0.0.0-...-57fe177 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package lockfile implements a filesystem based mutex.

Index

Constants

This section is empty.

Variables

View Source
var ErrLocked = errors.New("file is locked")

Functions

func Lock

func Lock(path string) error

Lock attempts to lock path. If it is already locked, it returns ErrLocked.

func Unlock

func Unlock(path string)

Unlock unlocks path

Types

This section is empty.

Jump to

Keyboard shortcuts

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