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

Function endpoint_name

crates/openshell-server/src/service_routing.rs:751–756  ·  view source on GitHub ↗
(endpoint: &ServiceEndpoint)

Source from the content-addressed store, hash-verified

749}
750
751fn endpoint_name(endpoint: &ServiceEndpoint) -> String {
752 endpoint.metadata.as_ref().map_or_else(
753 || endpoint_key(&endpoint.sandbox_name, &endpoint.service_name),
754 |metadata| metadata.name.clone(),
755 )
756}
757
758fn service_display_name(sandbox_name: &str, service_name: &str) -> String {
759 if service_name.is_empty() {

Calls 1

endpoint_keyFunction · 0.85

Tested by

no test coverage detected