proxy.golang.org : github.com/alibaba/sentinel-golang/pkg/adapters/go-zero : v0.0.0-20221011112204-0d804bbadda5
This package provides Sentinel integration for go-zero. go-zero provides both zrpc and rest modules. For go-zero/zrpc, user can call `AddUnaryInterceptors` and `AddStreamInterceptors` on zrpc.RpcServer or `WithUnaryClientInterceptor` on zrpc.ClientOption to add grpc interceptors. For go-zero/rest, there are two kinds of middlewares. The first one is the global middleware, which can be applied to rest.Server via: The plugin extracts service FullMethod as the resource name by default. Users may provide customized resource name extractor when creating new Sentinel interceptors (via options). Fallback logic: the plugin will return the BlockError by default if current request is blocked by Sentinel rules. Users may also provide customized fallback logic via WithXxxBlockFallback(handler) options. The second one is the routing middleware, which is registered to specific routes via by go-zero automatically. Therefore, it is recomended to create routing middleware based on the generated templates. An example with Sentinel based on go-zero template is provided in `routing_middleware`. The calling order is first global ones, then routing ones.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/alibaba/sentinel-golang/pkg/adapters/[email protected]
Published:
Indexed:
- github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d
- github.com/alibaba/sentinel-golang v1.0.2
- github.com/beorn7/perks v1.0.1
- github.com/cespare/xxhash/v2 v2.1.1
- github.com/davecgh/go-spew v1.1.1
- github.com/go-logr/logr v1.2.2
- github.com/go-logr/stdr v1.2.2
- github.com/go-ole/go-ole v1.2.5
- github.com/golang-jwt/jwt/v4 v4.2.0
- github.com/golang/protobuf v1.5.2
- github.com/google/uuid v1.3.0
- github.com/justinas/alice v1.2.0
- github.com/matttproud/golang_protobuf_extensions v1.0.1
- github.com/openzipkin/zipkin-go v0.4.0
- github.com/pkg/errors v0.9.1
- github.com/pmezard/go-difflib v1.0.0
- github.com/prometheus/client_golang v1.11.0
- github.com/prometheus/client_model v0.2.0
- github.com/prometheus/common v0.26.0
- github.com/prometheus/procfs v0.6.0
- github.com/shirou/gopsutil v3.20.11+incompatible
- github.com/spaolacci/murmur3 v1.1.0
- github.com/stretchr/testify v1.7.0
- github.com/zeromicro/go-zero v1.3.0
- go.opentelemetry.io/otel v1.3.0
- go.opentelemetry.io/otel/exporters/jaeger v1.3.0
- go.opentelemetry.io/otel/exporters/zipkin v1.3.0
- go.opentelemetry.io/otel/sdk v1.3.0
- go.opentelemetry.io/otel/trace v1.3.0
- go.uber.org/automaxprocs v1.4.0
- golang.org/x/sys v0.0.0-20220111092808-5a964db01320
- google.golang.org/grpc v1.43.0
- google.golang.org/protobuf v1.27.1
- gopkg.in/yaml.v2 v2.4.0
- gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b