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 WithRestart ¶ added in v0.0.5
WithRestart restarts the process if it exists. If limit is 0 it will restart forever.
func WithRootDir ¶
func WithStopSignal ¶
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func (*Supervisor) AddProcess ¶
func (h *Supervisor) AddProcess(name string, command string, opts ...Opt)
func (*Supervisor) Run ¶
func (h *Supervisor) Run() error
func (*Supervisor) StartHttpListener ¶
func (h *Supervisor) StartHttpListener()
func (*Supervisor) Stop ¶
func (h *Supervisor) Stop()
func (*Supervisor) StopOnSignal ¶ added in v0.0.5
func (h *Supervisor) StopOnSignal(sigs ...os.Signal)
Click to show internal directories.
Click to hide internal directories.