lock

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

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

func New

func New(path string) *Locker

func (*Locker) Acquire

func (l *Locker) Acquire() (func(), error)

The lock is held via flock, so it's automatically released by the kernel if the process dies or the file descriptor is closed — a crashed gitback process can never leave a stale lock behind.

Jump to

Keyboard shortcuts

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