mf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	Command       string
	Pid           int
	Children      []int
	CheckCommand  string
	CheckDelay    time.Duration
	CheckInterval time.Duration
	CheckTimeout  time.Duration

	State State
	// contains filtered or unexported fields
}

func (*Process) Check

func (p *Process) Check() error

func (*Process) Checker

func (p *Process) Checker()

func (*Process) Exit

func (p *Process) Exit() error

func (*Process) GetChildrenRecursive

func (p *Process) GetChildrenRecursive() ([]int, error)

func (*Process) PidExists

func (p *Process) PidExists() bool

func (*Process) Resume

func (p *Process) Resume() error

func (*Process) Start

func (p *Process) Start() error

func (*Process) Stop

func (p *Process) Stop() error

func (*Process) Wait

func (p *Process) Wait() error

type State

type State int
const (
	Running State = iota
	Stopped
)

Jump to

Keyboard shortcuts

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