hyperlane-plugin-sse 23.3.1

A Server-Sent Events (SSE) streaming and topic pub/sub plugin for the Hyperlane framework with Last-Event-ID replay, heartbeat, and CRLF-safe event framing.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*;

/// Zero-allocation hash map used inside each SSE topic shard.
pub(crate) type SseShardMap = HashMap<Arc<str>, Arc<TopicState>, BuildHasherDefault<FxHasher>>;

/// Replay buffer storing sequence-ordered shared SSE events.
pub(crate) type SseReplayQueue = VecDeque<(u64, Arc<SharedSseEvent>)>;

/// Runtime-scoped registry of shared staggered heartbeat wheels keyed by `(runtime_id, heartbeat_ms)`.
pub(crate) type SseHeartbeatMap = HashMap<(Id, u64), Arc<SseHeartbeatWheel>>;