service

package
v0.10.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package service implements methods for managing a Windows Service.

Package service implements methods for managing a Windows Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallService

func InstallService(request *InstallServiceRequest) error

func QueryService

func QueryService(name string) error

func RemoveService

func RemoveService(name string) error

func StartService

func StartService(name string) error

func StopService

func StopService(name string) error

Types

type InstallServiceRequest

type InstallServiceRequest struct {
	// ServiceName is the name of the service
	ServiceName string
	// ServiceDescription is the description of the service
	ServiceDescription string
	// ServiceExecutableName is the name of the executable.
	ServiceExecutableName string
	// ServiceExecutablePath is the path to the executable.
	// Empty string results in looking for the executable (wssdagent.exe) in the local directory.
	ServiceExecutablePath string
	// ServiceArguments are arguments to be passed to the executable.
	ServiceArguments []string
}

InstallServiceRequest is the structure used to send request to install a windows service.

Jump to

Keyboard shortcuts

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