package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

GetContext will return a process context if one exists.
GetManager returns a Manager and initializes one as singleton if there's none yet.
GetParentPID returns the ParentPID for this context.
GetPID returns the PID for this context.
SetSysProcAttribute sets the common SysProcAttrs for commands.
TraceLogDisable disables (or revert the disabling) the trace log for the process lifecycle.

# Constants

DescriptionPProfLabel is a label set on goroutines that have a process attached.
PIDPProfLabel is a label set on goroutines that have a process attached.
PPIDPProfLabel is a label set on goroutines that have a process attached.
ProcessTypePProfLabel is a label set on goroutines that have a process attached.

# Variables

DefaultContext is the default context to run processing commands in.
ProcessContextKey is the key under which process contexts are stored.
this global can be overridden by particular logging packages - thus avoiding import cycles.

# Structs

Context is a wrapper around context.Context and contains the current pid for this context.
Error is a wrapped error describing the error results of Process Execution.
Label represents a pprof label assigned to goroutine stack.
Manager manages all processes and counts PIDs.
A Process is a combined representation of a Process and a Stacktrace for the goroutines associated with it.
Stack is a stacktrace relating to a goroutine.
StackEntry is an entry on a stacktrace.

# Type aliases

FinishedFunc is a function that marks that the process is finished and can be removed from the process table - it is simply an alias for context.CancelFunc and is only for documentary purposes.
IDType is a pid type.