Skip to main content

load_from_database

Function load_from_database 

Source
pub async fn load_from_database(
    pool: &PgPool,
) -> ProxyResult<(Vec<Route>, Vec<Upstream>)>
Expand description

Load the whole proxy configuration: every route and every upstream.

Rows are returned whether or not they are enabled; that flag is part of the configuration, and the caller decides what to do with it, exactly as it would for a TOML config.