MCPcopy Create free account
hub / github.com/envoyproxy/dynamic-modules-examples / lookup

Method lookup

rust/src/dns_gateway/virtual_ip_cache.rs:115–117  ·  view source on GitHub ↗

Looks up the destination for a given virtual IP.

(&self, ip: Ipv4Addr)

Source from the content-addressed store, hash-verified

113
114 /// Looks up the destination for a given virtual IP.
115 pub fn lookup(&self, ip: Ipv4Addr) -> Option<Destination> {
116 self.ip_to_destination.get(&ip).as_deref().cloned()
117 }
118}
119
120static VIRTUAL_IP_CACHE: OnceLock<Arc<VirtualIpCache>> = OnceLock::new();

Callers 4

test_lookup_allocated_ipFunction · 0.80
test_metadata_preservedFunction · 0.80
on_new_connectionMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_lookup_allocated_ipFunction · 0.64
test_metadata_preservedFunction · 0.64