pub trait ServiceResolver: Send + Sync {
// Required method
fn resolve(&self, service: &str) -> Option<ResolvedEndpoint>;
}Expand description
A service resolver: maps a service name to an upstream endpoint. Implemented by the dataplane (which has the current snapshot’s services + upstreams + balancers).
Required Methods§
Sourcefn resolve(&self, service: &str) -> Option<ResolvedEndpoint>
fn resolve(&self, service: &str) -> Option<ResolvedEndpoint>
Resolve a service name to an upstream endpoint (host, port).