daemon

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LaunchdNoSuchProcessErrorCode int = 3
View Source
const LaunchdServiceNotFoundErrorCode int = 113
View Source
const SystemdUnitNotInstalledErrorCode int = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonConfig

type DaemonConfig struct {
	Label       string
	Description string
	Program     string
	Arguments   []string
}

type DaemonProvider

type DaemonProvider interface {
	Create(ctx context.Context, config *DaemonConfig, force bool) error

	Start(ctx context.Context, label string) error

	Stop(ctx context.Context, label string) error

	Remove(ctx context.Context, label string) error
}

Jump to

Keyboard shortcuts

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