mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-20 08:01:46 +00:00
Separate execution, provider ports, administration, and plugin lifecycle responsibilities. Fix shutdown ordering, account lock reclamation, multipart cancellation, budget windows, and WebSocket close handling. Align xAI catalog, reasoning, tools, replay, quota, and cost handling with current Grok contracts and remove legacy fallbacks. Update API and architecture documentation with regression coverage. Validated backend suites, strict workspace Clippy, isolated PostgreSQL/Redis integration, and real Codex/Grok client flows. Co-authored-by: Codex <noreply@openai.com>
36 lines
783 B
Rust
36 lines
783 B
Rust
//! 核心领域、执行引擎与运行时模块的测试入口
|
|
|
|
mod account;
|
|
mod concurrency;
|
|
mod diagnostics;
|
|
mod engine;
|
|
mod error;
|
|
mod event;
|
|
mod health;
|
|
mod lifecycle;
|
|
mod live;
|
|
mod metering;
|
|
mod middleware;
|
|
mod operation;
|
|
mod policy;
|
|
mod provider_ports;
|
|
mod routing;
|
|
mod runtime;
|
|
mod task;
|
|
mod upstream;
|
|
|
|
mod time;
|
|
|
|
#[derive(Default)]
|
|
struct RecordingDiagnostics(std::sync::Mutex<Vec<gateway_core::diagnostics::OperationalFailure>>);
|
|
#[async_trait::async_trait]
|
|
impl gateway_core::diagnostics::OperationalDiagnostics for RecordingDiagnostics {
|
|
async fn record_failure(
|
|
&self,
|
|
failure: gateway_core::diagnostics::OperationalFailure,
|
|
) -> Result<(), gateway_core::error::StoreError> {
|
|
self.0.lock().unwrap().push(failure);
|
|
Ok(())
|
|
}
|
|
}
|