middlewares

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandlerMiddleware

func ErrorHandlerMiddleware(c *gin.Context, err any)

func FaviconMiddleware

func FaviconMiddleware(config types.FaviconMiddlewareConfig) gin.HandlerFunc

func LogMeLogger added in v0.0.10

func LogMeLogger() gin.HandlerFunc

func LogMeRecoveryLogger added in v0.0.10

func LogMeRecoveryLogger() gin.HandlerFunc

func ZapLogger

func ZapLogger() gin.HandlerFunc

func ZapRecoveryLogger

func ZapRecoveryLogger() gin.HandlerFunc

Types

type ErrorHttpResponse

type ErrorHttpResponse struct {
	Message     string
	Status      int
	Description string
}

Jump to

Keyboard shortcuts

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