middlewares

package
v0.0.0-...-0e79629 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

AuthMiddleware checks for the presence and validity of the authorization token in the request header.

func ErrorHandlingMiddleware

func ErrorHandlingMiddleware(logger *logrus.Logger) gin.HandlerFunc

ErrorHandlingMiddleware captures any errors that occur during request processing and logs them.

func LoggingMiddleware

func LoggingMiddleware(logger *logrus.Logger) gin.HandlerFunc

LoggingMiddleware logs incoming HTTP requests and their responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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