Documentation ¶
Index ¶
- func NoRoute() gin.HandlerFunc
- func RecoveryMiddleware(cfg *config.ServerConfig, logger *logger.Logger) gin.HandlerFunc
- func RecoveryWithWriter(cfg *config.ServerConfig, logger *logger.Logger) gin.HandlerFunc
- func RequestMiddleware(logger *logger.Logger) gin.HandlerFunc
- func ResponseMiddleware(cfg *config.ServerConfig, logger *logger.Logger) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoRoute ¶
func NoRoute() gin.HandlerFunc
func RecoveryMiddleware ¶
func RecoveryMiddleware(cfg *config.ServerConfig, logger *logger.Logger) gin.HandlerFunc
RecoveryMiddleware returns a middleware that recovers from any panics and writes a 500 if there was one.
func RecoveryWithWriter ¶
func RecoveryWithWriter(cfg *config.ServerConfig, logger *logger.Logger) gin.HandlerFunc
RecoveryWithWriter returns a middleware for a given writer that recovers from any panics and writes a 500 if there was one.
func RequestMiddleware ¶
func RequestMiddleware(logger *logger.Logger) gin.HandlerFunc
func ResponseMiddleware ¶
func ResponseMiddleware(cfg *config.ServerConfig, logger *logger.Logger) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.