Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProcessExist = errors.New("process exist")
View Source
var ProcessNotExist = errors.New("process not exist")
View Source
var ProcessNotRun = errors.New("process does not run")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { services.ServiceLifeCycle Prepare(name string, workDir string, cmd string, args []string, env map[string]string, option models.ProcessOption) (*types.Process, error) ListAll() []*types.Process FindByName(name string) *types.Process Start(name string) error Stop(name string) error Restart(name string) error Kill(name string) error Clean(name string) error Watch(name string) error Wait(name string) <-chan error IsAlive(name string) bool }
func GetInstance ¶
func GetInstance() Service
Click to show internal directories.
Click to hide internal directories.