proc_daemon

package
v1.29.0-alpha.59 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHttpDomain xxx
	DefaultHttpDomain = "http://xxxxxxx"
)
View Source
const (
	// ProcessDaemonEndpoint xxx
	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
}

HttpConnection xxx

func NewHttpConnection

func NewHttpConnection(endpoint string) *HttpConnection

NewHttpConnection xxx

type ProcDaemon

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

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

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

	// DeleteProcess xxx
	// Delete process
	DeleteProcess(procId string) error

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

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

ProcDaemon xxx

func NewDaemon

func NewDaemon() ProcDaemon

NewDaemon xxx

Jump to

Keyboard shortcuts

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