service

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemService

type SystemService struct {
	// Name the label for the application. It is not used for any useful operation
	// by the service handler.
	Name string
	// Cmd is the function the service handler will run as a service.
	Cmd func(args []string) int
	// Args is passed to Cmd() as function arguments.
	Args []string
}

SystemService type that is responsible for managing the life-cycle of the service

func (*SystemService) Execute

func (s *SystemService) Execute(args []string, changeReq <-chan svc.ChangeRequest, changes chan<- svc.Status) (bool, uint32)

Execute implements the svc.Handler interface

func (*SystemService) Run

func (s *SystemService) Run() error

Run runs the service

Jump to

Keyboard shortcuts

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