Skip to main content

Module app

Module app 

Source
Expand description

Top-level wiring that binds config + server together.

§Why this layer exists on top of Server

Server is concerned with listening and dispatching requests. App is concerned with everything that has to happen before we start listening: installing the global logger exactly once, reading and validating config, and applying CLI overrides. Keeping these concerns apart means Server can be tested in isolation without reaching into the filesystem or installing a global logger.

Structs§

App
The application — config loaded, logger installed, server ready to start.