process

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProcess

func CreateProcess(p *Process, context interface{}) error

func DeleteProcess

func DeleteProcess(id int, context interface{}) error

func DeleteStatus

func DeleteStatus(processId int, statusType string, context interface{}) error

func SetProcessEnable

func SetProcessEnable(id int, enable bool, context interface{}) error

func UpdateProcess

func UpdateProcess(id int, p *Process, context interface{}) error

func UpdateStatus

func UpdateStatus(status *Status, context interface{}) error

Types

type Process

type Process struct {
	Id         int    `json:"id"`
	Name       string `json:"name"`
	Path       string `json:"path"`
	Dir        string `json:"path"`
	Config     string `json:"config"`
	Enable     bool   `json:"enable"`
	Pid        int    `json:"pid"`
	StartTime  string `json:"startTime"`
	ConfigFile string `json:"configFile"`
}

func GetProcess

func GetProcess(id int) (*Process, error)

func GetProcessList

func GetProcessList() ([]*Process, error)

type Status

type Status struct {
	ProcessId int    `json:"processId"`
	Type      string `json:"type"`
	Value     string `json:"value"`
}

func GetStatus

func GetStatus(processId int, statusType string) (*Status, error)

func GetStatusByProcessId

func GetStatusByProcessId(processId int) ([]*Status, error)

func GetStatusByType

func GetStatusByType(statusType string) ([]*Status, error)

func GetStatusList

func GetStatusList() ([]*Status, error)

Jump to

Keyboard shortcuts

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