supervisor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*process)

func WithEnv

func WithEnv(env map[string]string) Opt

func WithRootDir

func WithRootDir(dir string) Opt

func WithStopSignal

func WithStopSignal(sig os.Signal) Opt

type Supervisor

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

func New

func New(name string, timeout time.Duration) *Supervisor

func (*Supervisor) AddProcess

func (h *Supervisor) AddProcess(name string, command string, opts ...Opt)

func (*Supervisor) Run

func (h *Supervisor) Run()

func (*Supervisor) StartHttpListener

func (h *Supervisor) StartHttpListener()

func (*Supervisor) Stop

func (h *Supervisor) Stop()

Jump to

Keyboard shortcuts

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