(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption)
| 28 | } |
| 29 | |
| 30 | func (ni namespaceInterceptor) unary(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { |
| 31 | _, ok := namespaces.Namespace(ctx) |
| 32 | if !ok { |
| 33 | ctx = namespaces.WithNamespace(ctx, ni.namespace) |
| 34 | } |
| 35 | return invoker(ctx, method, req, reply, cc, opts...) |
| 36 | } |
| 37 | |
| 38 | func (ni namespaceInterceptor) stream(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) { |
| 39 | _, ok := namespaces.Namespace(ctx) |
nothing calls this directly
no test coverage detected