lockfile

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package os provides application-level utilities that are implemented using OS facilities (like lock files)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFile

type LockFile struct {
	// contains filtered or unexported fields
}

LockFile represents an exclusive, advisory OS file lock

func Create

func Create(name string) (*LockFile, error)

Create creates a file with an exclusive, advisory lock

func (*LockFile) Release

func (lf *LockFile) Release() error

Release releases the OS file lock and closes the respective file

Jump to

Keyboard shortcuts

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