postrust_proxy/config/mod.rs
1//! Configuration types and loaders for the proxy.
2//!
3//! Supports both file-based (TOML) and database-backed configuration.
4//!
5//! There is no hot reload. A `ConfigReloader` used to sit here with a channel
6//! nobody read, and `POST /config/reload` answered "Configuration reload
7//! requested" without reloading anything. Both are gone rather than left to be
8//! believed; changing the configuration needs a restart.
9
10mod database;
11mod file;
12mod types;
13
14pub use database::{
15 delete_route, delete_upstream, load_from_database, load_routes, load_upstreams, save_route,
16 save_upstream,
17};
18pub use file::load_from_file;
19pub use types::*;