flock

package
v0.0.0-...-1202eb4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

File AFAIRE

func New

func New(rootDir, file string) (*File, error)

New AFAIRE

func (*File) RLock

func (f *File) RLock(timeout time.Duration) (bool, error)

RLock AFAIRE

func (*File) Unlock

func (f *File) Unlock() error

Unlock AFAIRE

func (*File) WLock

func (f *File) WLock(timeout time.Duration) (bool, error)

WLock AFAIRE

Jump to

Keyboard shortcuts

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