Documentation
¶
Overview ¶
Package app provides the application bootstrap, dependency injection container, HTTP server lifecycle, and graceful shutdown.
The App type is the central wiring point. It owns the HTTP server, router, health handler, and logger. Shutdown hooks registered via OnStop are called in order during graceful shutdown, giving each component a chance to flush and release resources before the process exits.
Graceful shutdown follows the pattern described in The Go Programming Language (Donovan & Kernighan): listen for SIGINT/SIGTERM, then call server.Shutdown with a context deadline so in-flight requests can complete.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.