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

Method new

crates/openshell-supervisor-network/src/proxy.rs:127–139  ·  view source on GitHub ↗
(
        patterns: Vec<crate::l7::inference::InferenceApiPattern>,
        router: openshell_router::Router,
        routes: Vec<openshell_router::config::ResolvedRoute>,
        system_routes: Vec<o

Source from the content-addressed store, hash-verified

125 // route list it consumes); both names are clearer than alternatives.
126 #[allow(clippy::similar_names)]
127 pub fn new(
128 patterns: Vec<crate::l7::inference::InferenceApiPattern>,
129 router: openshell_router::Router,
130 routes: Vec<openshell_router::config::ResolvedRoute>,
131 system_routes: Vec<openshell_router::config::ResolvedRoute>,
132 ) -> Self {
133 Self {
134 patterns,
135 router,
136 routes: Arc::new(tokio::sync::RwLock::new(routes)),
137 system_routes: Arc::new(tokio::sync::RwLock::new(system_routes)),
138 }
139 }
140
141 /// Get a handle to the user route cache for background refresh.
142 pub fn route_cache(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected