Skip to main content

Crate mentedb_server

Crate mentedb_server 

Source
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 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

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.