process

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package process builds the Supervisor from config: the stub (the default; starts nothing) or real operating-system processes (exec). A supervisor is not run through the client tier: a process's lifetime is not a call that a timeout or a retry can wrap; the readiness wait and the stop deadline are its own.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromConfig

func NewFromConfig(cfg Config) (interfaces.Supervisor, error)

NewFromConfig returns the supervisor cfg.Kind selects; an unknown kind is CodeInvalidInput. It starts nothing.

Types

type Config

type Config struct {
	// Kind selects the implementation; empty means KindStub.
	Kind Kind `yaml:"kind" mapstructure:"kind"`
}

Config selects the supervisor.

type Kind

type Kind string

Kind selects a supervisor.

const (
	// KindStub starts nothing (the default).
	KindStub Kind = "stub"

	// KindExec starts real processes.
	KindExec Kind = "exec"
)

Directories

Path Synopsis
Package exec is the Supervisor that runs real operating-system processes.
Package exec is the Supervisor that runs real operating-system processes.
Package stub is the Supervisor that starts nothing: every process is ready at once and exits cleanly when stopped.
Package stub is the Supervisor that starts nothing: every process is ready at once and exits cleanly when stopped.

Jump to

Keyboard shortcuts

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