2026-04-03 14:59:58 +08:00
|
|
|
use axum::body::Body;
|
|
|
|
|
use axum::http::Response;
|
2026-03-31 19:19:04 +08:00
|
|
|
|
2026-04-05 20:23:16 +08:00
|
|
|
use crate::control::GatewayControlDecision;
|
|
|
|
|
use crate::{AppState, GatewayError};
|
2026-04-03 14:59:58 +08:00
|
|
|
|
|
|
|
|
pub(crate) async fn maybe_execute_sync_via_remote_decision(
|
2026-03-31 19:19:04 +08:00
|
|
|
_state: &AppState,
|
|
|
|
|
_parts: &http::request::Parts,
|
|
|
|
|
_trace_id: &str,
|
|
|
|
|
_decision: &GatewayControlDecision,
|
|
|
|
|
_body_json: &serde_json::Value,
|
|
|
|
|
_plan_kind: &str,
|
|
|
|
|
) -> Result<Option<Response<Body>>, GatewayError> {
|
|
|
|
|
Ok(None)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-03 14:59:58 +08:00
|
|
|
pub(crate) async fn maybe_execute_stream_via_remote_decision(
|
2026-03-31 19:19:04 +08:00
|
|
|
_state: &AppState,
|
|
|
|
|
_parts: &http::request::Parts,
|
|
|
|
|
_trace_id: &str,
|
|
|
|
|
_decision: &GatewayControlDecision,
|
|
|
|
|
_body_json: &serde_json::Value,
|
|
|
|
|
_plan_kind: &str,
|
|
|
|
|
) -> Result<Option<Response<Body>>, GatewayError> {
|
|
|
|
|
Ok(None)
|
|
|
|
|
}
|