MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / info

Method info

gateway/src/main_service.rs:1482–1491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1480 }
1481
1482 async fn info(self) -> Result<InfoResponse> {
1483 let state = self.state.lock();
1484 let (base_domain, port) = state.kv_store.get_best_zt_domain().unwrap_or_default();
1485 Ok(InfoResponse {
1486 base_domain,
1487 external_port: port.into(),
1488 app_address_ns_prefix: state.config.proxy.app_address_ns_prefix.clone(),
1489 version: env!("CARGO_PKG_VERSION").to_string(),
1490 })
1491 }
1492
1493 async fn get_peers(self) -> Result<GetPeersResponse> {
1494 self.ensure_from_gateway()?;

Callers 3

mainFunction · 0.45
fetch_port_policyFunction · 0.45
handle_this_nodeMethod · 0.45

Calls 3

get_best_zt_domainMethod · 0.80
cloneMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected