service

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const MODULE = "service"

Variables

This section is empty.

Functions

func Error

func Error(v ...interface{})

func Info

func Info(v ...interface{})

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

func Warn

func Warn(v ...interface{})

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