Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleErrors ¶
func HandleErrors() gin.HandlerFunc
Handle returns middleware that returns json error messages when request ended with non-200
func HandleLogging ¶ added in v0.1.285
func HandleLogging(config *config.Config) gin.HandlerFunc
func HandleRequestId ¶
func HandleRequestId() gin.HandlerFunc
Adds request id to logs, fills in logger
func HandleTimeout ¶
func HandleTimeout(timeout time.Duration) gin.HandlerFunc
Starts a separate goroutine to process the c.Next() callback If it returns within timeout does nothing
Types ¶
Click to show internal directories.
Click to hide internal directories.