Skip to main content

Module state

Module state 

Source
Expand description

Server state: config plus the storage adapter.

Concrete over MongoAdapter rather than generic or boxed. 0.1.0 is Mongo only, and a type parameter threaded through every handler would be noise until a second backend exists. The StorageAdapter trait is still what the pipelines are written against, so swapping this for a generic later is a change in one file rather than in every route.

Structsยง

AppState