Documentation
¶
Index ¶
- func DaemonReload() error
- func Disable(name string) error
- func Enable(name string) error
- func IsEnabled(name string) (bool, error)
- func Log(name string) (string, error)
- func LogClear(name string) error
- func LogTail(name string, lines int) (string, error)
- func Mask(name string) error
- func Reload(name string) error
- func Restart(name string) error
- func Start(name string) error
- func Status(name string) (bool, error)
- func Stop(name string) error
- func Unmask(name string) error
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceInfo ¶
type ServiceInfo struct {
Status string // 运行状态 (active, inactive, failed, etc.)
PID int // 主进程 PID
Memory int64 // 内存使用(字节)
CPU float64 // CPU 使用率
Uptime string // 运行时间
}
ServiceInfo 服务详细信息
func GetServiceInfo ¶
func GetServiceInfo(name string) (*ServiceInfo, error)
GetServiceInfo 获取服务详细信息
Click to show internal directories.
Click to hide internal directories.