Help us shape the future of Go! Take the 2026 Go Developer Survey

process

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 7 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 {
	Name           string
	PidFilePath    string
	ExecutablePath string
}

func New

func New(name, pidFilePath, executablePath string) *Process

func (*Process) Exists

func (p *Process) Exists() (bool, error)

func (*Process) Kill

func (p *Process) Kill() error

func (*Process) ReadPidFile

func (p *Process) ReadPidFile() (int, error)

func (*Process) Terminate

func (p *Process) Terminate() error

func (*Process) WritePidFile

func (p *Process) WritePidFile(pid int) error

Jump to

Keyboard shortcuts

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