Trait mz_orchestrator::Service

source ·
pub trait Service:
    Debug
    + Send
    + Sync {
    // Required method
    fn addresses(&self, port: &str) -> Vec<String>;
}
Expand description

Describes a running service managed by an Orchestrator.

Required Methods§

source

fn addresses(&self, port: &str) -> Vec<String>

Given the name of a port, returns the addresses for each of the service’s processes, in order.

Panics if port does not name a valid port.

Implementors§