Documentation ¶
Index ¶
- func DatabaseStreamServerInterceptor(db *gorm.DB) grpc.StreamServerInterceptor
- func DatabaseUnaryServerInterceptor(db *gorm.DB) grpc.UnaryServerInterceptor
- func LoggerStreamServerInterceptor(logger sdklogger.Logger) grpc.StreamServerInterceptor
- func LoggerUnaryServerInterceptor(logger sdklogger.Logger) grpc.UnaryServerInterceptor
- func MetricsStreamServerInterceptor(metrics sdkmetrics.Metrics) grpc.StreamServerInterceptor
- func MetricsUnaryServerInterceptor(metrics sdkmetrics.Metrics) grpc.UnaryServerInterceptor
- func TracingStreamClientInterceptor(applicationName string) grpc.StreamClientInterceptor
- func TracingStreamServerInterceptor(applicationName string) grpc.StreamServerInterceptor
- func TracingUnaryClientInterceptor(applicationName string) grpc.UnaryClientInterceptor
- func TracingUnaryServerInterceptor(applicationName string) grpc.UnaryServerInterceptor
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.