Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCallMiddleware ¶
func LogCallMiddleware(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
LogCallMiddleware log request and response with configured logger
func SetLoggerMiddleware ¶
func SetLoggerMiddleware(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
SetLoggerMiddleware creates logger instance with additional information and saves it to req context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.