service

package
v0.0.0-...-1c042d8 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(service Service)

Add a service to the pool of services

func Closed

func Closed()

Closed called by a service once done

func ShutdownAll

func ShutdownAll()

ShutdownAll the services in the pool

func StartAll

func StartAll()

StartAll the services in the pool

Types

type Service

type Service interface {
	//Start the service
	Start()

	//Shutdown the service
	Shutdown()

	//Init anything that needs to be created before start is called
	Init()

	//Register all the broadcast this must be called before init
	Register()
}

Service interface used to represent a service

Directories

Path Synopsis
http

Jump to

Keyboard shortcuts

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