Documentation ¶
Index ¶
- func GRPCLoggingMiddleware(logger *zap.Logger) grpc.UnaryServerInterceptor
- func GRPCRecoveryMiddleware(logger *zap.Logger) grpc.UnaryServerInterceptor
- func HTTPLoggingMiddleware(logger *zap.Logger) func(http.Handler) http.Handler
- func HTTPRecoveryMiddleware(logger *zap.Logger) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCLoggingMiddleware ¶
func GRPCLoggingMiddleware(logger *zap.Logger) grpc.UnaryServerInterceptor
LoggingMiddleware logs each incoming gRPC request
func GRPCRecoveryMiddleware ¶
func GRPCRecoveryMiddleware(logger *zap.Logger) grpc.UnaryServerInterceptor
RecoveryMiddleware catches and logs panics in gRPC handlers
func HTTPLoggingMiddleware ¶
HTTPLoggingMiddleware logs each incoming request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.