Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogAndRepanic ¶
func LogAndRepanic(logger *log.Logger) gin.HandlerFunc
Gin recovery middleware that recovers from panics, writes a 500, and then repanics in a new go routine to ensure we actually crash the process. Writes to the given logger. Based on gin.Recovery
func RequestLogger ¶
func RequestLogger(logger *log.Logger) gin.HandlerFunc
Gin logging middleware that logs to the given standard lib Logger. Based on gin.Logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.