Skip to content

6 corpus ipc server HTTP Server

Wiki Keeper (Grok Bot) edited this page Oct 15, 2026 · 2 revisions

corpus_ipc_server HTTP Server

Optional Axum 0.8 microservice (feature server) that exposes one IpcBackend over HTTP under the v0.2 REST contract. Router and handlers live in src/server.rs as corpus_ipc::server::router so tests can drive them in-process. The binary src/bin/corpus_ipc_server.rs is a thin main that selects a backend and calls axum::serve. Normative contract: docs/rest-api.md (shipped on crates.io).

Child pages

Component sketch

flowchart TB
  Main["corpus_ipc_server main"] --> Factory["BackendFactory::create"]
  Factory --> Rust["RustBackend"]
  Factory --> Zmq["ZmqIpcBackend if feature zmq"]
  Main --> Router["server::router"]
  Router --> State["AppState: Mutex Box dyn IpcBackend + AtomicBool initialized"]
  State --> Handlers["POST /initialize /process /save_state /reset"]
Loading

Clone this wiki locally