service

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE = "service"

Variables

This section is empty.

Functions

func Install

func Install() error

func Register

func Register(startup, shutdown func()) (err error)

func Restart

func Restart() error

func Run

func Run() error

func Start

func Start() error

func Uninstall

func Uninstall() error

Types

type Program

type Program struct {
	Startup  func()
	Shutdown func()
}

func (*Program) Start

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

func (*Program) Stop

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

Jump to

Keyboard shortcuts

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