ginwrapper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 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)
	// ConfigzHandler checks if the app's config is working
	ConfigzHandler func(c *gin.Context)
}

Jump to

Keyboard shortcuts

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