middleware

package
v0.0.0-...-829dc02 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheControl

func CacheControl() gin.HandlerFunc

CacheControl set the cache configuration

func Logger

func Logger() gin.HandlerFunc

Logger logs context HTTP requests in JSON format, with some additional custom key/values

func Recovery

func Recovery() gin.HandlerFunc

Recovery - middleware that recovers from any panics and writes a 500 if there was one.

func RequestId

func RequestId() gin.HandlerFunc

RequestId generates a request identity and save it in the header

Types

This section is empty.

Jump to

Keyboard shortcuts

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