filelock

package
v0.0.0-...-8f4516f Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithReadLock

func WithReadLock(dir string, f func() error) (bool, error)

WithReadLock runs the given function while holding a read lock on the directory `dir` It returns a bool indicating whether the lock was acquired and any error that occurred acquiring the lock or running the function

func WithWriteLock

func WithWriteLock(dir string, f func() error) (bool, error)

WithWriteLock runs the given function while holding a write lock on the directory `dir` It returns a bool indicating whether the lock was acquired and any error that occurred acquiring the lock or running the function

Types

This section is empty.

Jump to

Keyboard shortcuts

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