Documentation ¶
Index ¶
- func Authentication(conf config.Jwt, trans translation.Translator, cache port.AuthCache) gin.HandlerFunc
- func DefaultStructuredLogger(log logger.Logger) gin.HandlerFunc
- func ErrorHandler(trans translation.Translator) func(ctx *gin.Context, err interface{})
- func LocaleMiddleware(trans translation.Translator) gin.HandlerFunc
- func Prometheus() gin.HandlerFunc
- type LanguageUri
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authentication ¶
func Authentication(conf config.Jwt, trans translation.Translator, cache port.AuthCache) gin.HandlerFunc
func DefaultStructuredLogger ¶
func DefaultStructuredLogger(log logger.Logger) gin.HandlerFunc
func ErrorHandler ¶
func ErrorHandler(trans translation.Translator) func(ctx *gin.Context, err interface{})
func LocaleMiddleware ¶
func LocaleMiddleware(trans translation.Translator) gin.HandlerFunc
func Prometheus ¶
func Prometheus() gin.HandlerFunc
Types ¶
type LanguageUri ¶
type LanguageUri struct {
Language string `uri:"language" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.