interceptor

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GRPCResponseLatencyKey is the amount of time needed to produce a response to a request.
	GRPCResponseLatencyKey = "rpc.grpc.response_latency"
)

Variables

This section is empty.

Functions

func ErrorHandlingStreamServerInterceptor

func ErrorHandlingStreamServerInterceptor() grpc.StreamServerInterceptor

ErrorHandlingStreamServerInterceptor returns a new stream interceptor suitable for request error handling.

func ErrorHandlingUnaryServerInterceptor

func ErrorHandlingUnaryServerInterceptor() grpc.UnaryServerInterceptor

ErrorHandlingUnaryServerInterceptor returns a new unary interceptor suitable for request error handling.

func LoggingStreamServerInterceptor

func LoggingStreamServerInterceptor() grpc.StreamServerInterceptor

LoggingStreamServerInterceptor returns a new stream interceptor suitable for request logging.

func LoggingUnaryServerInterceptor

func LoggingUnaryServerInterceptor() grpc.UnaryServerInterceptor

LoggingUnaryServerInterceptor returns a new unary interceptor suitable for request logging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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