Documentation ¶
Overview ¶
Package interceptors contains gRPC wrappers for logging and Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stream ¶
func Stream(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
Stream adds Prometheus metrics to unary server RPC. Logger should be explicitly set by handler if required. See https://github.com/grpc-ecosystem/go-grpc-prometheus/issues/24
func Unary ¶
func Unary(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Unary adds context logger and Prometheus metrics to unary server RPC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.