(
patterns: Vec<crate::l7::inference::InferenceApiPattern>,
router: openshell_router::Router,
routes: Vec<openshell_router::config::ResolvedRoute>,
system_routes: Vec<o
| 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( |
nothing calls this directly
no outgoing calls
no test coverage detected