proc_daemon

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHttpDomain = "http://xxxxxxx"
)
View Source
const (
	ProcessDaemonEndpoint = "/var/run/process.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpConnection

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

func NewHttpConnection

func NewHttpConnection(endpoint string) *HttpConnection

type ProcDaemon

type ProcDaemon interface {
	//create process object
	CreateProcess(*types.ProcessInfo) error

	//inspect process status
	InspectProcessStatus(procId string) (*types.ProcessStatusInfo, error)

	//stop process
	StopProcess(procId string, timeout int) error

	//Delete process
	DeleteProcess(procId string) error

	//reload process, exec reloadCmd
	ReloadProcess(procId string) error

	//restart process, exec restartCmd
	RestartProcess(procId string) error
}

func NewDaemon

func NewDaemon() ProcDaemon

Jump to

Keyboard shortcuts

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