kill

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSProcessHandler

type OSProcessHandler struct{}

func (*OSProcessHandler) KillProcess

func (p *OSProcessHandler) KillProcess(pid int) error

func (*OSProcessHandler) ListProcesses

func (p *OSProcessHandler) ListProcesses() ([]Process, error)

type Process

type Process struct {
	Pid        int
	PPid       int
	Executable string
}

type ProcessHandler

type ProcessHandler interface {
	ListProcesses() ([]Process, error)
	KillProcess(pid int) error
}

type ProcessTreeKiller

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

func NewProcessTreeKiller

func NewProcessTreeKiller(handler ProcessHandler) *ProcessTreeKiller

func (*ProcessTreeKiller) KillProcessTree

func (ptk *ProcessTreeKiller) KillProcessTree(ppid int) error

Jump to

Keyboard shortcuts

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