winservice

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WinServiceMain = func(MainFunc, *ServiceDescription, *config.Config) (bool, error) { return false, nil }

WinServiceMain is only invoked on Windows. It detects when htnd is running as a service and reacts accordingly.

Functions

This section is empty.

Types

type MainFunc

type MainFunc func(startedChan chan<- struct{}) error

MainFunc specifies the signature of an application's main function to be able to run as a windows service

type ServiceDescription

type ServiceDescription struct {
	Name        string
	DisplayName string
	Description string
}

ServiceDescription contains information about a service, needed to administer it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL