Function
UnaryServerInterceptor
(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler)
Source from the content-addressed store, hash-verified
| 157 | } |
| 158 | |
| 159 | func UnaryServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error) { |
| 160 | ctx = context.WithValue(ctx, &mockKey2{}, "bar") |
| 161 | return handler(ctx, req) |
| 162 | } |
| 163 | |
| 164 | func StreamServerInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error { |
| 165 | wrapped := grpc_middleware.WrapServerStream(ss) |
Callers
nothing calls this directly
Tested by
no test coverage detected