Help us shape the future of Go! Take the 2026 Go Developer Survey

systemd

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 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()
}

ServiceProgram defines 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