Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
type Middleware func(httprouter.Handle) httprouter.Handle
type Stack ¶
type Stack interface { /* Adds a middleware to the stack. MWs will be called in the same order that they are added, such that: Use(Request ID Middleware) Use(Request Timing Middleware) would result in the request id middleware being the outermouts layer, called first, before the timing middleware. */ Use(Middleware) /* Wraps a given handle with the current stack from the result of Use() calls. */ Wrap(httprouter.Handle) httprouter.Handle }
Click to show internal directories.
Click to hide internal directories.