Expand description
MenteDB Server: REST API, gRPC, WebSocket, and auth layer.
This crate implements the network facing server for MenteDB:
auth: JWT token creation, validation, and middlewareextraction_queue: Background extraction queue with bounded concurrencyhandlers: Axum request handlers for memory CRUD and searchroutes: Router construction with middleware stackstate: Shared application state (database handle, config)websocket: Real time memory event streaminggrpc: Protocol Buffers based memory and cognition servicesrate_limit: Token bucket rate limitererror: Unified API error type with HTTP status mapping
Modulesยง
- auth
- JWT authentication and authorization. JWT authentication middleware and token management.
- error
- Unified API error type. API error types with automatic HTTP status code mapping.
- extraction_
queue - Background extraction queue with bounded concurrency. Bounded extraction queue with backpressure and graceful shutdown.
- grpc
- gRPC service implementations for memory and cognition. gRPC service implementations for MenteDB.
- handlers
- HTTP request handlers for the REST API. Axum handler functions for the MenteDB REST API.
- rate_
limit - Token bucket rate limiting middleware. Token bucket rate limiter implemented as a tower Layer/Service.
- routes
- Axum router construction. Route definitions for the MenteDB REST API.
- state
- Shared application state. Shared application state for the MenteDB server.
- websocket
- WebSocket handler for real time event streaming. WebSocket handler for live cognition streaming.