flock

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package `flock` wraps syscall `flock(2)`.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoLock = errors.New("did not acquire lock")

Functions

This section is empty.

Types

type Flock

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

func Open

func Open(path string) (*Flock, error)

func (*Flock) Close

func (lk *Flock) Close()

func (*Flock) TryLock

func (lk *Flock) TryLock(ctx context.Context, retryDelay time.Duration) error

func (*Flock) Unlock

func (lk *Flock) Unlock() error

Jump to

Keyboard shortcuts

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