Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulShutdown ¶
GracefulShutdown listens for system interrupt signals (e.g., SIGINT, SIGTERM) and gracefully shuts down the gRPC server. This function ensures that the server stops accepting new connections and allows in-progress requests to complete before shutting down.
func InterceptorLogger ¶
InterceptorLogger creates a logging function compatible with the gRPC middleware's logging system, using zerolog as the underlying logger. It returns a logging.Logger that logs messages at the appropriate level (Debug, Info, Warn, Error) based on the gRPC logging level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.