middlewares

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogger

func AccessLogger(next http.Handler) http.Handler

AccessLogger logs the details of the incoming requests and outgoing responses.

func CORS

func CORS(next http.Handler) http.Handler

CORS middleware handles CORS issues.

func InternalBasicAuth added in v1.0.0

func InternalBasicAuth(next http.Handler) http.Handler

InternalBasicAuth middleware applies basic auth to the target routes.

func Recovery

func Recovery(next http.Handler) http.Handler

Recovery recovers any panics that happen during request execution and returns a sanitized response.

func RequestContext

func RequestContext(next http.Handler) http.Handler

RequestContext attaches information to the request's context, such as: request ID, entry-time etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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