middleware

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

func HTTPLoggingMiddleware(logger *zap.Logger) func(http.Handler) http.Handler

HTTPLoggingMiddleware logs each incoming request

func HTTPRecoveryMiddleware

func HTTPRecoveryMiddleware(logger *zap.Logger) func(http.Handler) http.Handler

HTTPRecoveryMiddleware catches and logs panics in handlers

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL