pidlock

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentPIDFilePath

func AgentPIDFilePath() string

func ProcessExists

func ProcessExists(pid int) bool

func ReadPIDFile

func ReadPIDFile(path string) (int, error)

Types

type Lock

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

func Acquire

func Acquire(path string, logger Logger) (*Lock, error)

func (*Lock) Release

func (l *Lock) Release()

type Logger

type Logger interface {
	Debugf(format string, args ...any)
}

Jump to

Keyboard shortcuts

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