Documentation ¶
Rendered for windows/amd64
Index ¶
- type WinService
- func (ws *WinService) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (svcSpecificEC bool, exitCode uint32)
- func (ws *WinService) InstallService(args ...string) error
- func (ws *WinService) IsWindowsService() bool
- func (ws *WinService) Run() error
- func (ws *WinService) StartService() error
- func (ws *WinService) Status() (svc.State, error)
- func (ws *WinService) StopService() error
- func (ws *WinService) UninstallService() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WinService ¶
type WinService struct { SvcName string ExecuteFunc func() // contains filtered or unexported fields }
func (*WinService) Execute ¶
func (ws *WinService) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (svcSpecificEC bool, exitCode uint32)
func (*WinService) InstallService ¶
func (ws *WinService) InstallService(args ...string) error
func (*WinService) IsWindowsService ¶
func (ws *WinService) IsWindowsService() bool
func (*WinService) Run ¶
func (ws *WinService) Run() error
func (*WinService) StartService ¶
func (ws *WinService) StartService() error
func (*WinService) StopService ¶
func (ws *WinService) StopService() error
func (*WinService) UninstallService ¶
func (ws *WinService) UninstallService() error
Click to show internal directories.
Click to hide internal directories.