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

Function endpoint_key

crates/openshell-server/src/service_routing.rs:41–47  ·  view source on GitHub ↗
(sandbox: &str, service: &str)

Source from the content-addressed store, hash-verified

39}
40
41pub fn endpoint_key(sandbox: &str, service: &str) -> String {
42 if service.is_empty() {
43 sandbox.to_string()
44 } else {
45 format!("{sandbox}--{service}")
46 }
47}
48
49pub fn endpoint_url(
50 config: &openshell_core::Config,

Callers 5

load_endpointFunction · 0.85
endpoint_nameFunction · 0.85
handle_expose_serviceFunction · 0.85
handle_delete_serviceFunction · 0.85
get_service_endpointFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected