Skip to main content

service_for_env

Function service_for_env 

Source
pub fn service_for_env(
    api: &'static ModelApi,
    env: &HashMap<String, String>,
) -> Service
Expand description

service_for with the address read from the environment a pane’s CLI was started with. A pane with a proxy of its own has no address of its own in the status: the probe goes out the way srv does, which may not be the way that CLI does, so it could call a working address offline.