ginwrapper

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinResponseBodyLogMiddleware

func GinResponseBodyLogMiddleware() gin.HandlerFunc

func Ginzap

func Ginzap(logger *zap.Logger, timeFormat string, utc bool) gin.HandlerFunc

func New

func New(options *Options) *gin.Engine

func NoMethod added in v0.0.6

func NoMethod() gin.HandlerFunc

func NoRoute added in v0.0.6

func NoRoute() gin.HandlerFunc

func RecoveryWithZap

func RecoveryWithZap(logger *zap.Logger, stack bool) gin.HandlerFunc

func Tracer

func Tracer() gin.HandlerFunc

Types

type Options added in v0.0.10

type Options struct {
	// LivezHandler checks if the app is alive
	LivezHandler func(c *gin.Context)
	// ReadyzHandler checks if the app is ready for incoming requests
	ReadyzHandler func(c *gin.Context)
}

Jump to

Keyboard shortcuts

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