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.
Click to show internal directories.
Click to hide internal directories.