MCPcopy Create free account
hub / github.com/pydio/cells / ErrorFormatStreamInterceptor

Function ErrorFormatStreamInterceptor

common/middleware/errors-grpc.go:84–88  ·  view source on GitHub ↗
(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler)

Source from the content-addressed store, hash-verified

82}
83
84func ErrorFormatStreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
85 err := handler(srv, stream)
86 err = handleGrpcError(stream.Context(), err, "[GRPC]"+info.FullMethod)
87 return ToGRPC(err)
88}
89
90func ErrorFormatUnaryClientInterceptor() grpc.UnaryClientInterceptor {
91 return func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {

Callers

nothing calls this directly

Calls 4

handleGrpcErrorFunction · 0.85
ToGRPCFunction · 0.85
ContextMethod · 0.65
handlerInterface · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…