Module dispatcher

Module dispatcher 

Source
Expand description

Runtime backend selector — wraps either a CSM or an OpenCHAMI backend behind a single enum so the rest of the codebase is backend-agnostic.

StaticBackendDispatcher is constructed once per configured site at startup (see crate::config::Site) and stored in the request ServerState. Each HTTP request resolves a borrowed InfraContext that holds a reference to the dispatcher for the requested site; service code calls trait methods on that reference, and the trait impls in crate::backend_dispatcher route the call to the active variant.

Enums§

StaticBackendDispatcher
Routes API calls to either a CSM or OCHAMI backend.