mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-04 18:05:19 +08:00
b59ccc52ae
增加 Supervisor 状态读取 初始化 启动 重启 设置 日志 功能 Refs https://github.com/1Panel-dev/1Panel/issues/1754 Refs https://github.com/1Panel-dev/1Panel/issues/1409 Refs https://github.com/1Panel-dev/1Panel/issues/1388 Refs https://github.com/1Panel-dev/1Panel/issues/379 Refs https://github.com/1Panel-dev/1Panel/issues/353 Refs https://github.com/1Panel-dev/1Panel/issues/331
23 lines
532 B
Go
23 lines
532 B
Go
package response
|
|
|
|
type HostToolRes struct {
|
|
Type string `json:"type"`
|
|
Config interface{} `json:"config"`
|
|
}
|
|
|
|
type Supervisor struct {
|
|
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"`
|
|
}
|
|
|
|
type HostToolConfig struct {
|
|
Content string `json:"content"`
|
|
}
|