systemd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceProgram

type ServiceProgram struct {
	ServiceName string
	DisplayName string
	Description string

	Port                int
	StartServiceHandler func(port int)
	StopServiceHandler  func()
}

define service program

func (*ServiceProgram) Launch

func (p *ServiceProgram) Launch()

Launch will initialize and start the service for operations

Launch is called from within main() to start the service

func (*ServiceProgram) Start

func (p *ServiceProgram) Start(s service.Service) error

Start the service

func (*ServiceProgram) Stop

func (p *ServiceProgram) Stop(s service.Service) error

Stop will stop the service

Jump to

Keyboard shortcuts

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