middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogDevRequestCreator

func LogDevRequestCreator(c *gin.Context) func(ctx *gin.Context)

LogDevRequestCreator Use closure to get user_id from *gin.Context

func LogProdRequest

func LogProdRequest(c *gin.Context)

func LogRequestBase

func LogRequestBase(c *gin.Context) []zap.Field

func Logger

func Logger(isLogRequestBody bool) gin.HandlerFunc

func OpenapiValidator

func OpenapiValidator(swagger *openapi3.T) func(ginCtx *gin.Context)

func Recovery

func Recovery() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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