(
state: &Arc<ServerState>,
endpoint: ServiceEndpoint,
)
| 208 | } |
| 209 | |
| 210 | fn 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)] |
| 227 | fn validate_endpoint_name(field: &str, value: &str, max_len: usize) -> Result<(), Status> { |
no test coverage detected