proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/hertz : v0.0.0-20230626085943-08071855bc67
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 -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/alibaba/sentinel-golang/pkg/adapters/[email protected]
Published:
Indexed:
- github.com/alibaba/sentinel-golang v1.0.4
- github.com/cloudwego/hertz v0.2.0
- github.com/stretchr/testify v1.8.0