interceptors

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger added in v0.6.5

func Logger(l *zap.Logger) logging.Logger

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL