middlewares

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package middlewares groups logger middleware subpackages.

Use the http subpackage for Gin middleware and the grpc subpackage for gRPC server interceptors. Shared context keys live in the root logger/common package.

Main entry points:

  • middlewares/http.InitLogger to initialize the request-scoped logger context for Gin
  • middlewares/http.LoggerWithConfig to emit the final structured HTTP log entry
  • middlewares/grpc.InitLoggerUnaryServerInterceptor for unary gRPC requests
  • middlewares/grpc.InitLoggerStreamServerInterceptor for streaming gRPC requests

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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