gin-middlewares

module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT

README

gin-middlewares

middleware for gin

GoDoc Go.Dev reference Build Status codecov Action Status Go Report Card Licence Tag

middleware

  • authj is an authorization middleware, it's based on casbin.
  • expvar is handler wrap expvar.Handler.
  • gzap is gzap provides log handling using zap package.
  • nocache noCache is a simple piece of middleware that sets a number of HTTP headers to prevent a router (or subrouter) from being cached by an upstream proxy and/or client.
  • pprof the standard HandlerFuncs from the net/http/pprof package with the provided gin.Engine.
  • ratelimit RateLimit rate limit
  • requestid is a middleware that injects a request ID into the context of each request.
  • traceid traceid is a middleware that injects a trace ID into the context of each request. A trace ID is a string of uuid.

Directories

Path Synopsis
Package gzap provides log handling using zap package.
Package gzap provides log handling using zap package.

Jump to

Keyboard shortcuts

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