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
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.
Types ¶
This section is empty.