Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCodeToLevel ¶
DefaultCodeToLevel returns zap log level by GRPC code
func StreamServerInterceptor ¶
func StreamServerInterceptor(lg *zap.Logger) grpc.StreamServerInterceptor
StreamServerInterceptor returns stream interceptor to log request
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(lg *zap.Logger) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns unary interceptor to log request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.