interceptors

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseStreamServerInterceptor

func DatabaseStreamServerInterceptor(db *gorm.DB) grpc.StreamServerInterceptor

DatabaseStreamServerInterceptor returns a streaming server interceptor that adds gorm.DB to the context.

func DatabaseUnaryServerInterceptor

func DatabaseUnaryServerInterceptor(db *gorm.DB) grpc.UnaryServerInterceptor

DatabaseUnaryServerInterceptor returns a unary server interceptor that adds gorm.DB to the context.

func LoggerStreamServerInterceptor

func LoggerStreamServerInterceptor(logger sdklogger.Logger) grpc.StreamServerInterceptor

LoggerStreamServerInterceptor returns a streaming server interceptor that adds the sdklogger.Logger to the context.

func LoggerUnaryServerInterceptor

func LoggerUnaryServerInterceptor(logger sdklogger.Logger) grpc.UnaryServerInterceptor

LoggerUnaryServerInterceptor returns a unary server interceptors that adds the sdklogger.Logger to the context.

func MetricsStreamServerInterceptor

func MetricsStreamServerInterceptor(metrics sdkmetrics.Metrics) grpc.StreamServerInterceptor

MetricsStreamServerInterceptor returns a streaming server interceptor that adds sdkmetrics.Metrics to the context.

func MetricsUnaryServerInterceptor

func MetricsUnaryServerInterceptor(metrics sdkmetrics.Metrics) grpc.UnaryServerInterceptor

MetricsUnaryServerInterceptor returns a unary server interceptors that adds sdkmetrics.Metrics to the context.

func TracingStreamClientInterceptor added in v1.5.0

func TracingStreamClientInterceptor(applicationName string) grpc.StreamClientInterceptor

TracingStreamClientInterceptor returns a stream server interceptor that will trace streaming requests performed by gRPC client.

func TracingStreamServerInterceptor added in v1.5.0

func TracingStreamServerInterceptor(applicationName string) grpc.StreamServerInterceptor

TracingStreamServerInterceptor returns a stream server interceptor that will trace streaming requests to the given gRPC server.

func TracingUnaryClientInterceptor added in v1.5.0

func TracingUnaryClientInterceptor(applicationName string) grpc.UnaryClientInterceptor

TracingUnaryClientInterceptor returns a unary client interceptor that will trace requests performed by gRPC client.

func TracingUnaryServerInterceptor added in v1.5.0

func TracingUnaryServerInterceptor(applicationName string) grpc.UnaryServerInterceptor

TracingUnaryServerInterceptor returns a unary server interceptor that will trace requests to the given gRPC server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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