Documentation
¶
Index ¶
- func Logger(l *zap.Logger) logging.Logger
- func StreamClientWithCaller(tracer trace.Tracer) grpc.StreamClientInterceptor
- func StreamServerErrors(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func UnaryClientErrors(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (resp any, err error)
- func UnaryClientWithCaller(tracer trace.Tracer) grpc.UnaryClientInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientWithCaller ¶ added in v0.6.5
func StreamClientWithCaller(tracer trace.Tracer) grpc.StreamClientInterceptor
func StreamServerErrors ¶ added in v0.6.5
func StreamServerErrors( srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, ) error
StreamServerErrors converts returned errors into gRPC status errors so that gRPC-Gatewat can translate them into proper HTTP codes/messages.
func UnaryClientErrors ¶ added in v0.6.5
func UnaryClientErrors( ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (resp any, err error)
UnaryClientErrors converts returned errors into gRPC status errors so that the gRPC-Gateway can translate them into proper HTTP codes/messages.
func UnaryClientWithCaller ¶ added in v0.6.5
func UnaryClientWithCaller(tracer trace.Tracer) grpc.UnaryClientInterceptor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.