services

package
v0.0.0-...-79991b0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Active []*Service // list of registered services

Functions

func Announce

func Announce(r *http.Request)

Announce announces the initial client request into the logger.

Types

type Service

type Service struct {
	Name        string                                   // name of the service
	Path        string                                   // url path of the service
	Description string                                   // short description of the service
	Handler     func(http.ResponseWriter, *http.Request) // the function that is run when the service is called
}

func (*Service) Register

func (s *Service) Register()

Register registers a service to be executed

Jump to

Keyboard shortcuts

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