middleware

package
v0.0.0-...-cb8f91d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL