Skip to main content

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;
17/// Unified API error type.
18pub mod error;
19/// Background extraction queue with bounded concurrency.
20pub mod extraction_queue;
21/// gRPC service implementations for memory and cognition.
22pub mod grpc;
23/// HTTP request handlers for the REST API.
24pub mod handlers;
25/// Token bucket rate limiting middleware.
26pub mod rate_limit;
27/// Axum router construction.
28pub mod routes;
29/// Shared application state.
30pub mod state;
31/// WebSocket handler for real time event streaming.
32pub mod websocket;