proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/gear
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
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/alibaba/sentinel-golang/pkg/adapters/gear
Keywords:
cloud-native
, go
, golang
, microservice
, microservices
, middleware
, rate-limiting
, resiliency
License: Apache-2.0
Latest release: about 2 years ago
First release: about 3 years ago
Namespace: github.com/alibaba/sentinel-golang/pkg/adapters
Stars: 2,892 on GitHub
Forks: 446 on GitHub
Total Commits: 273
Committers: 49
Average commits per author: 5.571
Development Distribution Score (DDS): 0.769
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago