process

package
v0.0.0-...-ff29edb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadPID

func ReadPID(pidFilePath string) (int, error)

Types

type PIDProvider

type PIDProvider func() (int, error)

type ProcessChecker

type ProcessChecker struct{}

func (*ProcessChecker) Alive

func (*ProcessChecker) Alive(pid int) bool

type ProcessKiller

type ProcessKiller struct{}

func (*ProcessKiller) Kill

func (*ProcessKiller) Kill(pid int) error

func (*ProcessKiller) KillProvidedPID

func (k *ProcessKiller) KillProvidedPID(pidProvider PIDProvider) error

Jump to

Keyboard shortcuts

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