supervisor

package
v0.0.0-...-81cdc2d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Start() error
	Wait() error
}

type Supervisor

type Supervisor struct {
	// contains filtered or unexported fields
}

func NewSupervisor

func NewSupervisor(tag string, restartIntervalMS []int, maxRestartCount int) *Supervisor

func (*Supervisor) Run

func (s *Supervisor) Run(ctx context.Context, startup func(ctx context.Context) Cmd) error

TODO: use ctx to stop process and stop restart

Jump to

Keyboard shortcuts

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