processes

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 11 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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