middleware

package
v0.0.0-...-7245a53 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

AuthMiddleware is middleware that handles auth verification on each request

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware is middleware that logs each request, even ones that don't match a route

func MetricsMiddleware

func MetricsMiddleware(next http.Handler) http.Handler

MetricsMiddleware implements mux.MiddlewareFunc.

func PanicMiddleware

func PanicMiddleware(next http.Handler) http.Handler

PanicMiddleware handles a panic, logs it and the stack trace, and recovers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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