Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivationPID ¶
func ActivationPID(cfg Configurable) int32
ActivationPID returns the process ID of the activated state; if any
func ActivationPIDFileName ¶
ActivationPIDFileName returns a consistent file path based on the given process id.
func IsActivated ¶
func IsActivated(cfg Configurable) bool
IsActivated returns whether or not this process is being run in an activated state. This can be this specific process, or one of it's parents.
Types ¶
type Activation ¶
Activation eases the use of a PidLock for the purpose of "marking" a process as being a valid "activation".
func NewActivation ¶
func NewActivation(cfg Configurable, pid int) (*Activation, error)
NewActivation creates an instance of Activation.
type Configurable ¶
type Configurable interface {
ConfigPath() string
}
Click to show internal directories.
Click to hide internal directories.