Crate qail_gateway

Crate qail_gateway 

Source
Expand description

§QAIL Gateway

The native data layer that can replace REST/GraphQL with binary AST protocol.

§Architecture

Client → QAIL AST (binary) → Gateway → Postgres/Qdrant/Redis

§Features

  • Binary wire format: Not JSON, but QAIL AST binary
  • Row-level security: Policies defined in schema.qail
  • ~1ms latency: vs ~10ms for REST/GraphQL
  • Multi-database: Postgres + Qdrant + Redis federation

§Status

🚧 Draft - This crate is in early design phase.

Re-exports§

pub use config::GatewayConfig;
pub use error::GatewayError;
pub use server::Gateway;

Modules§

auth
Authentication middleware
config
Gateway configuration
error
Gateway error types
policy
Row-level security policy engine
server
Gateway server implementation