Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is executed by the middleware chain. It operates on events and can return an error to signal failure to upstream callers.
func Chain ¶
func Chain(h Handler, mws ...Middleware) Handler
Chain applies middlewares in the order they are provided, producing a final handler. The last middleware wraps the provided handler.
type Middleware ¶
Middleware wraps a Handler, typically adding cross-cutting concerns such as logging, tracing or metrics.
Click to show internal directories.
Click to hide internal directories.