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: almost 2 years ago
First release: almost 3 years ago
Namespace: github.com/alibaba/sentinel-golang/pkg/adapters
Stars: 2,334 on GitHub
Forks: 385 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago