middleware

package
v0.0.0-...-4a101ef Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindErrorMessage

func BindErrorMessage(err error) string

func ContextMiddleware

func ContextMiddleware(db *sql.DB) gin.HandlerFunc

func ErrorHandlingMiddleware

func ErrorHandlingMiddleware() gin.HandlerFunc

Handle all errors

func LoggingMiddleware

func LoggingMiddleware() gin.HandlerFunc

func RecoveryMiddleware

func RecoveryMiddleware() gin.HandlerFunc

func ValidationErrorMessage

func ValidationErrorMessage(e validator.FieldError) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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