spatio_server/lib.rs
1//! Spatio Server
2//!
3//! High-performance server for Spatio spatio-temporal database.
4//!
5//! # Transports
6//!
7//! - **RPC** (default): High-performance tarpc-based transport
8//! - **HTTP** (optional): REST API, enable with `http` feature
9//!
10//! # Example
11//!
12//! ```ignore
13//! use spatio_server::run_server;
14//!
15//! run_server(listener, db, shutdown).await?;
16//! ```
17
18pub mod handler;
19pub mod protocol;
20pub mod reader;
21pub mod transport;
22pub mod writer;
23
24// Re-export protocol types for client usage
25pub use protocol::{CurrentLocation, LocationUpdate, SpatioService, SpatioServiceClient, Stats};
26
27// Re-export default transport for convenience
28pub use transport::rpc::run_server;