MCPcopy
hub / github.com/ory/keto / WithGRPCUnaryInterceptors

Function WithGRPCUnaryInterceptors

internal/driver/registry_factory.go:151–155  ·  view source on GitHub ↗
(i ...grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

149 }
150}
151func WithGRPCUnaryInterceptors(i ...grpc.UnaryServerInterceptor) TestRegistryOption {
152 return func(_ testing.TB, r *RegistryDefault) {
153 r.defaultUnaryInterceptors = i
154 }
155}
156func WithGRPCStreamInterceptors(i ...grpc.StreamServerInterceptor) TestRegistryOption {
157 return func(_ testing.TB, r *RegistryDefault) {
158 r.defaultStreamInterceptors = i

Callers 3

TestAuthorizedRequestFunction · 0.92
TestAuthorityRequestFunction · 0.92
TestPanicRecoveryFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestAuthorizedRequestFunction · 0.74
TestAuthorityRequestFunction · 0.74
TestPanicRecoveryFunction · 0.56