Documentation
¶
Overview ¶
Package main runs the notification service as a standalone gRPC process.
Unlike the HTTP notification-server example (which serves its HTTP server outside the Modulex lifecycle, in main itself), this example demonstrates the modulex/grpc package's server lifecycle helper: the gRPC listener is started and gracefully stopped by mgr.StartModules/mgr.StopModules, via notification.GRPCServerModule. The grpc-consumer process connects to this server using the gRPC client adapter.
Click to show internal directories.
Click to hide internal directories.