Top 0.9% forks on proxy.golang.org
proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/hertz
This package provides Sentinel integration for hertz For server side, users may create a Hertz Server with Sentinel middleware. A simple of server side: For client side, users may create a Hertz Client with Sentinel middleware. A simple of client side: The plugin extracts service FullMethod as the resource name by default. Users may provide customized resource name extractor when creating new Sentinel middlewares (via options). Fallback logic: the plugin will stop by default if current request is blocked by Sentinel rules. Users may also provide customized fallback logic via WithClientBlockFallback(handler) options for client side. 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 WithServerBlockFallback(handler) options for server side.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/alibaba/sentinel-golang/pkg/adapters/hertz
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: 4 days ago