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

Function service_endpoint_response

crates/openshell-server/src/grpc/service.rs:210–224  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    endpoint: ServiceEndpoint,
)

Source from the content-addressed store, hash-verified

208}
209
210fn service_endpoint_response(
211 state: &Arc<ServerState>,
212 endpoint: ServiceEndpoint,
213) -> ServiceEndpointResponse {
214 let url = service_routing::endpoint_url(
215 &state.config,
216 &endpoint.sandbox_name,
217 &endpoint.service_name,
218 )
219 .unwrap_or_default();
220 ServiceEndpointResponse {
221 endpoint: Some(endpoint),
222 url,
223 }
224}
225
226#[allow(clippy::result_large_err)]
227fn validate_endpoint_name(field: &str, value: &str, max_len: usize) -> Result<(), Status> {

Callers 2

handle_get_serviceFunction · 0.85
handle_list_servicesFunction · 0.85

Calls 1

endpoint_urlFunction · 0.85

Tested by

no test coverage detected