service

package
v4.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 7 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() error) (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() error
	Shutdown func() error
}

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