1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! MenteDB Server: REST API, gRPC, WebSocket, and auth layer.
//!
//! This crate implements the network facing server for MenteDB:
//!
//! - [`auth`]: JWT token creation, validation, and middleware
//! - [`extraction_queue`]: Background extraction queue with bounded concurrency
//! - [`handlers`]: Axum request handlers for memory CRUD and search
//! - [`routes`]: Router construction with middleware stack
//! - [`state`]: Shared application state (database handle, config)
//! - [`websocket`]: Real time memory event streaming
//! - [`grpc`]: Protocol Buffers based memory and cognition services
//! - [`rate_limit`]: Token bucket rate limiter
//! - [`error`]: Unified API error type with HTTP status mapping
/// JWT authentication and authorization.
/// Bundled management console served at /console.
/// Named per-tenant databases.
/// Unified API error type.
/// Background extraction queue with bounded concurrency.
/// gRPC service implementations for memory and cognition.
/// HTTP request handlers for the REST API.
/// Memory feature endpoints.
/// Operations endpoints.
/// Rule based maintenance sweep (consolidate, decay, archive).
/// Token bucket rate limiting middleware.
/// Axum router construction.
/// Shared application state.
/// WebSocket handler for real time event streaming.