middleware

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler added in v0.11.0

Handler creates a middleware that tries to use the web.Handler interface, and pass any error to the provided ErrorHandler. This middleware will also catch panic(), superseeding Recoverer(). If no handler is provided, our errors.HandleError is used.

func NOP added in v0.12.0

func NOP(next http.Handler) http.Handler

Do-Nothing middleware

func Recoverer added in v0.10.0

Recoverer creates a middleware to catch panic() and pass it to an ErrorHandler wrapped as *errors.PanicError. If no handler is provided, our errors.HandleError is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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