service

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 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() 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

Jump to

Keyboard shortcuts

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