brainos_grpcadapter/lib.rs
1//! # Brain gRPC Adapter
2//!
3//! Exposes Brain's signal processing pipeline over gRPC using tonic.
4//!
5//! ## Services
6//! - `MemoryService` — semantic memory search, store, list, and signal streaming
7//! - `AgentService` — agent connect, send signal, receive streaming updates
8//!
9//! ## Ports
10//! - Default gRPC port: **19792**
11
12mod auth;
13mod errors;
14mod events;
15mod handlers;
16mod helpers;
17mod server;
18mod state;
19
20/// Types and server/client stubs generated from `proto/memory.proto`.
21pub mod memory_proto {
22 tonic::include_proto!("brain.memory");
23}
24
25/// Types and server/client stubs generated from `proto/agent.proto`.
26pub mod agent_proto {
27 tonic::include_proto!("brain.agent");
28}
29
30pub use errors::GrpcAdapterError;
31pub use server::serve;
32pub use state::{AgentServiceImpl, MemoryServiceImpl};
33
34#[cfg(test)]
35mod tests;