proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/gear : v0.0.0-20221011112204-0d804bbadda5
This package provides Sentinel middleware for Gear. Users may register SentinelMiddleware to the Gear router, like. The plugear extracts "HttpMethod:Router" 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 plugear 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/go-ole/go-ole v1.2.5
- github.com/stretchr/testify v1.7.0
- github.com/teambition/gear v1.24.0