middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

Apply process multiple middleware

Types

type Middleware

type Middleware func(next fasthttp.RequestHandler) fasthttp.RequestHandler

Middleware chainable fasthttp middleware func

func NewLogger

func NewLogger(logger *zap.Logger) Middleware

NewLogger logs after a request

func NewRecover

func NewRecover(logger *zap.Logger) Middleware

NewRecover recover middleware, prevent crashing when a handler paniced

func Onion

func Onion(m ...Middleware) Middleware

Onion Onion style middleware

Jump to

Keyboard shortcuts

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