ginwrapper

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 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

func NoMethod() gin.HandlerFunc

func NoRoute

func NoRoute() gin.HandlerFunc

func RecoveryWithZap

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

func Tracer

func Tracer() gin.HandlerFunc

Types

type Options

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