mentedb_server/lib.rs
1//! MenteDB Server: REST API, gRPC, WebSocket, and auth layer.
2//!
3//! This crate implements the network facing server for MenteDB:
4//!
5//! - [`auth`]: JWT token creation, validation, and middleware
6//! - [`extraction_queue`]: Background extraction queue with bounded concurrency
7//! - [`handlers`]: Axum request handlers for memory CRUD and search
8//! - [`routes`]: Router construction with middleware stack
9//! - [`state`]: Shared application state (database handle, config)
10//! - [`websocket`]: Real time memory event streaming
11//! - [`grpc`]: Protocol Buffers based memory and cognition services
12//! - [`rate_limit`]: Token bucket rate limiter
13//! - [`error`]: Unified API error type with HTTP status mapping
14
15/// JWT authentication and authorization.
16pub mod auth;
17pub mod cluster;
18/// Unified API error type.
19pub mod error;
20/// Background extraction queue with bounded concurrency.
21pub mod extraction_queue;
22/// gRPC service implementations for memory and cognition.
23pub mod grpc;
24/// HTTP request handlers for the REST API.
25pub mod handlers;
26/// Token bucket rate limiting middleware.
27pub mod rate_limit;
28/// Axum router construction.
29pub mod routes;
30/// Shared application state.
31pub mod state;
32/// WebSocket handler for real time event streaming.
33pub mod websocket;