svchelper

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

README

env GOOS=windows code .

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Schedule(ctx context.Context, wg *sync.WaitGroup, cancel context.CancelFunc) error
}

type ServiceWrapper

type ServiceWrapper struct {
	// contains filtered or unexported fields
}

func GetServiceWrapper

func GetServiceWrapper(service Service, servicName, serviceDisplayName, serviceDescription string, useExePathAsWorkingDirectory bool) (*ServiceWrapper, error)

func (*ServiceWrapper) ControlService

func (sw *ServiceWrapper) ControlService(c svc.Cmd, to svc.State) error

func (*ServiceWrapper) ExePath

func (sw *ServiceWrapper) ExePath() (string, error)

func (*ServiceWrapper) Execute

func (sw *ServiceWrapper) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32)

func (*ServiceWrapper) InstallService

func (sw *ServiceWrapper) InstallService() error

func (*ServiceWrapper) ManageService

func (sw *ServiceWrapper) ManageService() error

func (*ServiceWrapper) RemoveService

func (sw *ServiceWrapper) RemoveService() error

func (*ServiceWrapper) RunService

func (sw *ServiceWrapper) RunService(isDebug bool) error

func (*ServiceWrapper) StartService

func (sw *ServiceWrapper) StartService() error

Jump to

Keyboard shortcuts

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