Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
func DefaultStructuredLogger ¶
func DefaultStructuredLogger() gin.HandlerFunc
DefaultStructuredLogger logs a gin HTTP request in JSON format. Uses the default logger from rs/zerolog.
func StructuredLogger ¶
func StructuredLogger(logger *zerolog.Logger) gin.HandlerFunc
StructuredLogger logs a gin HTTP request in JSON format. Allows to set the logger for testing purposes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.