Skip to main content

opsis_core/
lib.rs

1//! `opsis-core` — Core types and traits for the Opsis world state engine.
2//!
3//! This crate contains **zero IO** — only types, traits, and pure logic.
4
5pub mod clock;
6pub mod error;
7pub mod event;
8pub mod feed;
9pub mod schema;
10pub mod spatial;
11pub mod state;
12pub mod subscription;
13
14// Re-export key types for convenience.
15pub use clock::{WorldClock, WorldTick};
16pub use error::{OpsisError, OpsisResult};
17pub use event::{
18    EventId, EventSource, OpsisEvent, OpsisEventKind, RawFeedEvent, StateLineDelta, WorldDelta,
19};
20pub use feed::{ConnectorConfig, FeedConfig, FeedIngestor, FeedSource, FeedsConfig, SchemaKey};
21pub use schema::{OpsisEventKindHint, SchemaDefinition, SchemaProducer, builtin_schemas};
22pub use spatial::{Bbox, GeoHotspot, GeoPoint};
23pub use state::{StateDomain, StateLine, Trend, WorldState};
24pub use subscription::{ClientId, Subscription};