grpcutil

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeToLogrusLevel

func CodeToLogrusLevel(code codes.Code) logrus.Level

func ErrFromCtxErr

func ErrFromCtxErr(err error) error

func LBCodeToLogrusLevel

func LBCodeToLogrusLevel(code codes.Code) logrus.Level

func RespDetailInterceptor

func RespDetailInterceptor(
	ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler,
) (resp interface{}, err error)

RespDetailInterceptor doesn't log status details of the responses itself, it just stashes them in gRPC context for real middleware logger(s) to pick up and log as part of the reverse chain traversal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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