supervisor

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ID       string `json:"id"`
	Revision string `json:"revision"`
	Checksum string `json:"checksum"`
}

type Connection

type Connection struct {
	ID             string            `json:"id"`
	SourceEndpoint string            `json:"source_endpoint"`
	TargetEndpoint string            `json:"target_endpoint"`
	Metadata       map[string]string `json:"metadata,omitempty"`
}

type Endpoint

type Endpoint struct {
	ID        string `json:"id"`
	Address   string `json:"address"`
	Transport string `json:"transport"`
	Direction string `json:"direction,omitempty"`
}

type Instance

type Instance struct {
	ID              string       `json:"id"`
	Artifact        Artifact     `json:"artifact"`
	State           State        `json:"state"`
	PID             int          `json:"pid,omitempty"`
	ProcessIdentity string       `json:"process_identity,omitempty"`
	StartedAt       time.Time    `json:"started_at,omitempty"`
	UpdatedAt       time.Time    `json:"updated_at"`
	ExitCode        *int         `json:"exit_code,omitempty"`
	CrashCount      int          `json:"crash_count"`
	Health          string       `json:"health,omitempty"`
	LastError       string       `json:"last_error,omitempty"`
	Endpoints       []Endpoint   `json:"endpoints,omitempty"`
	Connections     []Connection `json:"connections,omitempty"`
	Dependencies    []string     `json:"dependencies,omitempty"`
}

type Orphan

type Orphan struct {
	ID              string
	PID             int
	ProcessIdentity string
	Alive           bool
}

type State

type State string
const (
	StateStarting   State = "starting"
	StateRunning    State = "running"
	StateReady      State = "ready"
	StateStopping   State = "stopping"
	StateStopped    State = "stopped"
	StateCrashed    State = "crashed"
	StateRestarting State = "restarting"
	StateOrphaned   State = "orphaned"
)

Jump to

Keyboard shortcuts

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