Documentation
¶
Index ¶
- func CreateProcess(p *Process, context interface{}) error
- func DeleteProcess(id int, context interface{}) error
- func DeleteStatus(processId int, statusType string, context interface{}) error
- func SetProcessEnable(id int, enable bool, context interface{}) error
- func UpdateProcess(id int, p *Process, context interface{}) error
- func UpdateStatus(status *Status, context interface{}) error
- type Process
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProcess ¶
func DeleteProcess ¶
func DeleteStatus ¶
func SetProcessEnable ¶
func UpdateProcess ¶
func UpdateStatus ¶
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 GetProcessList ¶
type Status ¶
type Status struct {
ProcessId int `json:"processId"`
Type string `json:"type"`
Value string `json:"value"`
}
func GetStatusByProcessId ¶
func GetStatusByType ¶
func GetStatusList ¶
Click to show internal directories.
Click to hide internal directories.