daemon

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxKey

func CtxKey(s string) any

Types

type Manager

type Manager interface {
	Start(context.Context, config.Config) error
	Stop(context.Context, config.Config) error
	Running(context.Context, config.Config) (Status, error)
	Dependencies(context.Context, config.Config) (deps process.Dependency, root bool)
}

Manager handles running background processes.

func NewManager

func NewManager(host environment.HostActions) Manager

NewManager creates a new process manager.

type Status

type Status struct {
	// Parent process
	Running bool
	// Subprocesses
	Processes []processStatus
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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