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

Function handle_get_gateway_config

crates/openshell-server/src/grpc/policy.rs:1380–1390  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    _request: Request<GetGatewayConfigRequest>,
)

Source from the content-addressed store, hash-verified

1378}
1379
1380pub(super) async fn handle_get_gateway_config(
1381 state: &Arc<ServerState>,
1382 _request: Request<GetGatewayConfigRequest>,
1383) -> Result<Response<GetGatewayConfigResponse>, Status> {
1384 let global_settings = load_global_settings(state.store.as_ref()).await?;
1385 let settings = materialize_global_settings(&global_settings)?;
1386 Ok(Response::new(GetGatewayConfigResponse {
1387 settings,
1388 settings_revision: global_settings.revision,
1389 }))
1390}
1391
1392pub(super) async fn handle_get_sandbox_provider_environment(
1393 state: &Arc<ServerState>,

Callers 1

get_gateway_configMethod · 0.85

Calls 2

load_global_settingsFunction · 0.85

Tested by

no test coverage detected