proch

package module
v0.0.0-...-ea49c19 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 10 Imported by: 0

README

proch

Linux Process Helpers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBinary

func IsBinary(pth string) bool

func IsProc

func IsProc(pid string, binPath string) (bool, error)

func IsProcB

func IsProcB(pid string, binPath string, buf []byte) (bool, error)

Types

type Binary

type Binary struct {
	Pth string
}

func NewBinary

func NewBinary(pth string) (*Binary, error)

func (*Binary) IsRunning

func (b *Binary) IsRunning(uid ...uint32) (ok bool, err error)

func (*Binary) Kill

func (b *Binary) Kill(signal ...os.Signal) error

func (*Binary) Pids

func (b *Binary) Pids(uid ...uint32) (pids Pids, err error)

func (*Binary) PidsS

func (b *Binary) PidsS(cb func(pid string) error, uid ...uint32) (err error)

type Pid

type Pid int64

func (Pid) Kill

func (p Pid) Kill(signal ...os.Signal) error

type Pids

type Pids []Pid

func (Pids) Kill

func (p Pids) Kill(signal ...os.Signal) error

Jump to

Keyboard shortcuts

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