Documentation ¶ Index ¶ type Locker func New(path string) *Locker func (l *Locker) Acquire() (func(), error) 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. Source Files ¶ View all Source files lock.go Click to show internal directories. Click to hide internal directories.