MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / get_service_endpoint

Function get_service_endpoint

crates/openshell-server/src/grpc/service.rs:197–208  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    sandbox: &str,
    service: &str,
)

Source from the content-addressed store, hash-verified

195}
196
197async fn get_service_endpoint(
198 state: &Arc<ServerState>,
199 sandbox: &str,
200 service: &str,
201) -> Result<Option<ServiceEndpoint>, Status> {
202 let key = service_routing::endpoint_key(sandbox, service);
203 state
204 .store
205 .get_message_by_name::<ServiceEndpoint>(&key)
206 .await
207 .map_err(|e| Status::internal(format!("fetch endpoint failed: {e}")))
208}
209
210fn service_endpoint_response(
211 state: &Arc<ServerState>,

Callers 2

handle_get_serviceFunction · 0.85
handle_delete_serviceFunction · 0.85

Calls 1

endpoint_keyFunction · 0.85

Tested by

no test coverage detected