Documentation ¶
Rendered for windows/amd64
Index ¶
- func InitService(serviceName string) error
- func InitServiceWithShutdown(serviceName string) error
- func IsServiceInitialized() bool
- func SetPreShutdownHandler(preshutdownhandler PreshutdownHandler)
- func UpdatePreShutdownInfo(h windows.Handle, timeoutMilliSeconds uint32) error
- type PreshutdownHandler
- type SERVICE_PRESHUTDOWN_INFO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitService ¶
InitService is the entry point for running the daemon as a Windows service. It returns an indication of whether it is running as a service; and an error.
func InitServiceWithShutdown ¶ added in v1.32.0
InitService is the entry point for running the daemon as a Windows service which will accept preshutdown event. It returns an indication of whether it is running as a service; and an error.
func IsServiceInitialized ¶ added in v1.32.0
func IsServiceInitialized() bool
func SetPreShutdownHandler ¶ added in v1.32.0
func SetPreShutdownHandler(preshutdownhandler PreshutdownHandler)
Types ¶
type PreshutdownHandler ¶ added in v1.32.0
type PreshutdownHandler interface {
ProcessShutdownEvent() error
}
type SERVICE_PRESHUTDOWN_INFO ¶ added in v1.32.0
type SERVICE_PRESHUTDOWN_INFO struct {
PreshutdownTimeout uint32 // The time-out value, in milliseconds.
}
SERVICE_PRESHUTDOWN_INFO structure
func QueryPreShutdownInfo ¶ added in v1.32.0
func QueryPreShutdownInfo(h windows.Handle) (*SERVICE_PRESHUTDOWN_INFO, error)
Click to show internal directories.
Click to hide internal directories.