Documentation ¶
Index ¶
- func StreamClientInterceptor(log logger.Logger) grpc.StreamClientInterceptor
- func StreamServerInterceptor(log logger.Logger) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(log logger.Logger) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(log logger.Logger) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(log logger.Logger) grpc.StreamClientInterceptor
StreamClientInterceptor returns a new streaming client interceptor that optionally logs the execution of external gRPC calls.
func StreamServerInterceptor ¶
func StreamServerInterceptor(log logger.Logger) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new streaming server interceptor that adds zap.Logger to the context.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(log logger.Logger) grpc.UnaryClientInterceptor
UnaryClientInterceptor returns a new unary client interceptor that optionally logs the execution of external gRPC calls.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(log logger.Logger) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors that adds zap.Logger to the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.