Documentation ¶
Overview ¶
Package handler contains the main logic to accept external requests.
I defines interfaces shared by other packages that accept external requests. Packages that implement these interfaces include:
- handler/http
It also manages the lifecycle of those handlers. All handlers should be registered to this package in order to be gracefuly stopped (drained) when the application shuts down.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyReg = errors.New("there must be at least one registered handler")
ErrEmptyReg is the error returned when there are no handlers registered
Functions ¶
This section is empty.
Types ¶
type Reg ¶
type Reg struct {
// contains filtered or unexported fields
}
Reg (registry) holds a list of H
Click to show internal directories.
Click to hide internal directories.