wsvc

package module
v0.0.0-...-f377fef Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveService

func RemoveService(svcName string) error

func StartService

func StartService(svcName string) error

func StopService

func StopService(svcName string) error

func SvcMain

func SvcMain(config ServiceConfig)

Types

type ConstructorInstanceFunc

type ConstructorInstanceFunc func() (Service, error)

type Service

type Service interface {
	Startup() error
	Stop() error
}

type ServiceConfig

type ServiceConfig struct {
	ServiceName string
	DisplayName string
	Description string
	Constructor ConstructorInstanceFunc
}

type WrapperServiceImpl

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

func (*WrapperServiceImpl) Execute

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

Jump to

Keyboard shortcuts

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