middlewares

package
v0.0.0-...-65429f0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware is a middleware to handle CORS

func ContextMiddleware

func ContextMiddleware() gin.HandlerFunc

ContextMiddleware create appcontext

func Logger

func Logger(logger logwrapper.LoggerWrapper) gin.HandlerFunc

Logger is a middleware to log the request

func MetricsMiddleware

func MetricsMiddleware() gin.HandlerFunc

MetricsMiddleware is a middleware that records metrics

func Recovery

func Recovery(stack bool) gin.HandlerFunc

Recovery is a middleware to recover from panic

func TraceMiddleware

func TraceMiddleware() gin.HandlerFunc

TraceMiddleware is a middleware to create trace for request

Types

This section is empty.

Jump to

Keyboard shortcuts

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