2023-07-31 03:28:41 +00:00
|
|
|
package response
|
|
|
|
|
|
|
|
type HostToolRes struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Config interface{} `json:"config"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Supervisor struct {
|
2023-08-02 10:29:50 +00:00
|
|
|
ConfigPath string `json:"configPath"`
|
|
|
|
IncludeDir string `json:"includeDir"`
|
|
|
|
LogPath string `json:"logPath"`
|
|
|
|
IsExist bool `json:"isExist"`
|
|
|
|
Init bool `json:"init"`
|
|
|
|
Msg string `json:"msg"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
CtlExist bool `json:"ctlExist"`
|
|
|
|
ServiceName string `json:"serviceName"`
|
2023-07-31 03:28:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type HostToolConfig struct {
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
2023-08-01 09:31:42 +00:00
|
|
|
|
|
|
|
type SupervisorProcessConfig struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Command string `json:"command"`
|
|
|
|
User string `json:"user"`
|
|
|
|
Dir string `json:"dir"`
|
|
|
|
Numprocs string `json:"numprocs"`
|
|
|
|
Msg string `json:"msg"`
|
|
|
|
Status []ProcessStatus `json:"status"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ProcessStatus struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
PID string `json:"PID"`
|
|
|
|
Uptime string `json:"uptime"`
|
2023-08-08 08:38:12 +00:00
|
|
|
Msg string `json:"msg"`
|
2023-08-01 09:31:42 +00:00
|
|
|
}
|