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(addr, db, shutdown).await?;
16//! ```
17
18pub mod handler;
19pub mod protocol;
20pub mod transport;
21
22// Re-export protocol types for client usage
23pub use protocol::{
24 CurrentLocation, LocationUpdate, SpatioService, SpatioServiceClient, Stats, UpsertOptions,
25};
26
27// Re-export default transport for convenience
28pub use transport::rpc::run_server;