An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/gin : v0.0.0-20220808015021-c5f1f1d055c5

This package provides Sentinel middleware for Gin. Users may register SentinelMiddleware to the Gin server, like. The plugin extracts "HttpMethod:FullPath" 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 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 WithBlockFallback(handler) options.

Registry - Documentation - Download - JSON
purl: pkg:golang/github.com/alibaba/sentinel-golang/pkg/adapters/[email protected]
Published:
Indexed:

    Loading...
    Readme
    Loading...