proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/gin : v0.0.0-20220808015021-c5f1f1d055c5
This package provides Sentinel middleware for Gin. Users may register SentinelMiddleware to the Gin server, like. The plugin extracts "HttpMethod:FullPath" as the resource name by default (e.g. GET:/foo/:id). Users may provide customized resource name extractor when creating new SentinelMiddleware (via options). Fallback logic: the plugin will return "429 Too Many Requests" status code if current request is blocked by Sentinel rules. Users may also provide customized fallback logic via WithBlockFallback(handler) options.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/alibaba/sentinel-golang/pkg/adapters/[email protected]
Published:
Indexed:
- github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d
- github.com/alibaba/sentinel-golang v1.0.2
- github.com/gin-gonic/gin v1.7.0
- github.com/go-ole/go-ole v1.2.5
- github.com/stretchr/testify v1.7.0