middleware

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter added in v0.2.0

func NewRouter() *chi.Mux

NewRouter returns a new HTTP route multiplexer with a default middleware stack.

func Recoverer added in v0.2.0

func Recoverer(next http.Handler) http.Handler

Recoverer recovers from panics, logs the panic and returns a HTTP 500. Inspired by chi.Recoverer

Types

This section is empty.

Jump to

Keyboard shortcuts

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