service

package
v1.1.34 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SelfInstallService

type SelfInstallService struct {
	natsservice.NatsService
	ServiceName string
}

SelfInstallService installs the current executable as a service on linux

func (*SelfInstallService) Install added in v0.1.14

func (svc *SelfInstallService) Install(arguments []string) error

func (*SelfInstallService) Run

func (svc *SelfInstallService) Run(ctx context.Context, params ...interface{}) error

func (*SelfInstallService) Start

func (svc *SelfInstallService) Start(s service.Service) error

func (*SelfInstallService) Stop

func (svc *SelfInstallService) Stop(s service.Service) error

func (*SelfInstallService) Uninstall added in v1.1.34

func (svc *SelfInstallService) Uninstall() error

Jump to

Keyboard shortcuts

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