service

package
v0.0.0-...-33245e2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceFlag = flag.String("service", "", "Control the system service.")

Functions

This section is empty.

Types

type OnStopHandler

type OnStopHandler interface {
	OnStop()
}

type RunHandler

type RunHandler interface {
	Run(logger service.Logger)
}

type ServiceRunnerBuilder

type ServiceRunnerBuilder interface {
	WithServiceDisplayName(serviceDisplayName string) ServiceRunnerBuilder
	WithServiceDescription(serviceDescription string) ServiceRunnerBuilder

	WithAdditionalArguments(args ...string) ServiceRunnerBuilder

	WithServiceUserName(serviceUserName string) ServiceRunnerBuilder
	WithServiceUserName_AsCurrentUser() ServiceRunnerBuilder

	WithServicePassword(servicePassword string) ServiceRunnerBuilder

	WithOnStopHandler(h OnStopHandler) ServiceRunnerBuilder

	Run()
}

func NewServiceRunnerBuilder

func NewServiceRunnerBuilder(serviceName string, runHandler RunHandler) ServiceRunnerBuilder

Jump to

Keyboard shortcuts

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