Documentation ¶ Index ¶ type L func All() (L, error) func ByCmdline(c []string) (L, error) func NewList() L func (t *L) Add(proc T) func (t *L) AddPID(pid int) func (t *L) FilterByEnv(key string, value string) L func (t *L) FilterByEnvList(keys []string, value string) L func (t L) HasPID(pid int) bool func (t L) Len() int func (t L) Procs() []T func (t L) String() string type T func New(pid int) T func (t T) CommandLine() string func (t *T) Env() map[string]string func (t T) Head() string func (t T) PID() int func (t T) Process() (*os.Process, error) func (t T) Signal(sig os.Signal) error func (t T) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type L ¶ type L struct { // contains filtered or unexported fields } func All ¶ func All() (L, error) func ByCmdline ¶ func ByCmdline(c []string) (L, error) func NewList ¶ func NewList() L func (*L) Add ¶ func (t *L) Add(proc T) func (*L) AddPID ¶ func (t *L) AddPID(pid int) func (*L) FilterByEnv ¶ func (t *L) FilterByEnv(key string, value string) L func (*L) FilterByEnvList ¶ func (t *L) FilterByEnvList(keys []string, value string) L func (L) HasPID ¶ func (t L) HasPID(pid int) bool func (L) Len ¶ func (t L) Len() int func (L) Procs ¶ func (t L) Procs() []T func (L) String ¶ func (t L) String() string type T ¶ type T struct { // contains filtered or unexported fields } func New ¶ func New(pid int) T func (T) CommandLine ¶ func (t T) CommandLine() string func (*T) Env ¶ func (t *T) Env() map[string]string func (T) Head ¶ func (t T) Head() string func (T) PID ¶ func (t T) PID() int func (T) Process ¶ func (t T) Process() (*os.Process, error) func (T) Signal ¶ func (t T) Signal(sig os.Signal) error func (T) String ¶ func (t T) String() string Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.