Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceManager ¶
type ServiceManager struct {
// contains filtered or unexported fields
}
ServiceManager 结构体封装了服务管理的核心功能
func NewServiceManager ¶
func NewServiceManager(name, displayName, description string) (*ServiceManager, error)
NewServiceManager 创建一个新的 ServiceManager 实例
func (*ServiceManager) Control ¶
func (sm *ServiceManager) Control(action string) error
Control 控制服务(启动、停止、重启等)
Click to show internal directories.
Click to hide internal directories.