Versions in this module Expand all Collapse all v1 v1.13.6 Jul 20, 2020 v1.13.5 Jul 20, 2020 v1.13.4 Jul 20, 2020 Changes in this version + func IsChild() bool + func PPid() int + func PPidOS() int + func Pid() int + func SearchBinary(file string) string + func SearchBinaryPath(file string) string + func Send(pid int, data []byte, group ...string) error + func SetPPid(ppid int) error + func Shell(cmd string, out io.Writer, in io.Reader) error + func ShellExec(cmd string, environment ...[]string) (string, error) + func ShellRun(cmd string) error + func StartTime() time.Time + func Uptime() time.Duration + type Manager struct + func NewManager() *Manager + func (m *Manager) AddProcess(pid int) + func (m *Manager) Clear() + func (m *Manager) GetProcess(pid int) *Process + func (m *Manager) KillAll() error + func (m *Manager) NewProcess(path string, args []string, environment []string) *Process + func (m *Manager) Pids() []int + func (m *Manager) Processes() []*Process + func (m *Manager) RemoveProcess(pid int) + func (m *Manager) Send(data []byte) + func (m *Manager) SendTo(pid int, data []byte) error + func (m *Manager) SignalAll(sig os.Signal) error + func (m *Manager) Size() int + func (m *Manager) WaitAll() + type MsgRequest struct + Data []byte + Group string + RecvPid int + SendPid int + func Receive(group ...string) *MsgRequest + type MsgResponse struct + Code int + Data []byte + Message string + type Process struct + Manager *Manager + PPid int + func NewProcess(path string, args []string, environment ...[]string) *Process + func NewProcessCmd(cmd string, environment ...[]string) *Process + func (p *Process) Kill() error + func (p *Process) Pid() int + func (p *Process) Release() error + func (p *Process) Run() error + func (p *Process) Send(data []byte) error + func (p *Process) Signal(sig os.Signal) error + func (p *Process) Start() (int, error)