ginx

package
v0.0.0-...-385ea26 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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