Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallService ¶
InstallService installs a windows service with the given name, display name, description and arguments
func IsWindowsService ¶
IsWindowsService reports whether the process is running as a Windows service.
func RemoveService ¶
RemoveService uninstalls a service with the given name
Types ¶
type Job ¶
type Job interface { // Run should block until complete after cancelation. The process may // terminate before Run completes if the job takes too long to return after // context is canceled. Non-nil error will be logged to service Event Log // unless the error is context.Canceled. Run(context.Context) error }
Click to show internal directories.
Click to hide internal directories.