process

package module
v0.0.0-...-8066ad3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 6 Imported by: 0

README

process

process management 进程管理

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

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

func NewProcess

func NewProcess(name string, arg ...string) *Process

func (*Process) GetPid

func (proc *Process) GetPid() int

func (*Process) GetStat

func (proc *Process) GetStat() error

func (*Process) Restart

func (proc *Process) Restart() error

func (*Process) Run

func (proc *Process) Run() (out []byte, err error)

func (*Process) Stop

func (proc *Process) Stop() error

type ProcessManager

type ProcessManager struct {
}

func (*ProcessManager) Daemon

func (pm *ProcessManager) Daemon(duplicateKill bool, shouldGoon func(stdout string) bool, name string, arg ...string) (err error)

func (*ProcessManager) FindProcess

func (pm *ProcessManager) FindProcess(keyword string) proto.IProcess

func (*ProcessManager) ListProcess

func (pm *ProcessManager) ListProcess() proto.IProcess

func (*ProcessManager) ListProcessWithFilter

func (pm *ProcessManager) ListProcessWithFilter(matched func(cmdLine string) bool) (procs []*process.Process, err error)

func (*ProcessManager) Run

func (pm *ProcessManager) Run(name string, arg ...string) (proc proto.IProcess, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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