package
0.20.2
Repository: https://github.com/suosi-inc/go-pkg-web.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Cors is a middleware function that appends headers to allow CORS with default config.
CorsWithOption is a middleware function that appends headers to allow CORS with option.
Ginzap returns a gin.HandlerFunc (middleware) that logs requests using uber-go/zap.
GinzapWithConfig returns a gin.HandlerFunc using configs.
No description provided by the author
HeaderAuth is a middleware function that validates the request header.
JwtAuth jwt 中间件.
NoCache is a middleware function that appends headers.
PprofRegister the standard HandlerFuncs from the net/http/pprof package with the provided gin.Engine.
PprofRouteRegister the standard HandlerFuncs from the net/http/pprof package with the provided gin.GrouterGroup.
RestRecovery For gin.CustomRecovery.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PprofDefaultPrefix url prefix of pprof.

# Structs

No description provided by the author
ZapConfig is zap config setting for Ginzap.