Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(h fasthttp.RequestHandler, m ...Middleware) fasthttp.RequestHandler
Apply process multiple middleware
Types ¶
type Middleware ¶
type Middleware func(next fasthttp.RequestHandler) fasthttp.RequestHandler
Middleware chainable fasthttp middleware func
func NewRecover ¶
func NewRecover(logger *zap.Logger) Middleware
NewRecover recover middleware, prevent crashing when a handler paniced
Click to show internal directories.
Click to hide internal directories.