Expand description
gRPC API server for Mnemo.
This crate exposes Mnemo’s core memory operations (remember, recall, forget)
over gRPC using tonic. The protobuf service definition lives in
proto/mnemo.proto and code is generated at build time via tonic-build.
§Usage
ⓘ
use std::sync::Arc;
use mnemo_grpc::router;
let engine: Arc<mnemo_core::query::MnemoEngine> = /* ... */;
let grpc_router = router(engine);Modules§
Structs§
- Mnemo
Grpc Server - gRPC server backed by a shared
MnemoEngine.
Functions§
- router
- Build a
tonic::transport::server::Routerserving the Mnemo gRPC API. - router_
with_ auth - Like
routerbut with the bearer secret passed explicitly.Some(token)installs a tonic interceptor that requiresauthorization: <token>(a bare token orBearer <token>) on every RPC;Noneruns open (with a warning).