Documentation
¶
Overview ¶
Package supervisor provides a generic API to watch and manage Unix processes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process represents a unix process to be supervised.
func NewProcess ¶
NewProcess returns a new process to be supervised.
func (*Process) Restart ¶
func (p *Process) Restart()
Restart will cause a running process to restart.
type Supervisable ¶
type Supervisable interface {
Start()
Stop()
Restart()
Status() State
}
Supervisable is an interface that represents a process.
Click to show internal directories.
Click to hide internal directories.