lock

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package lock provides file based cooperative locking.

Package lock currently only works on darwin/linux.

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
}

func New

func New(path string) (*File, error)

func (*File) Close

func (f *File) Close() error

func (*File) Lock

func (f *File) Lock() error

func (*File) LockShared

func (f *File) LockShared() error

func (*File) Unlock

func (f *File) Unlock() error

Jump to

Keyboard shortcuts

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