interceptors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 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

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

func StreamClientWithCaller

func StreamClientWithCaller(tracer trace.Tracer) grpc.StreamClientInterceptor

func StreamServerErrors

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

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

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