hyperlane-plugin-sse 22.14.0

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
use super::*;

/// Fixed-size 64-way sharded SSE topic registry array.
pub(crate) type SseShardArray =
    Box<[RwLock<HashMapXxHash3_64<String, Arc<TopicState>>>; SSE_SHARD_COUNT]>;

/// Bounded per-topic replay ring storing `(sequence_id, shared_event)` pairs.
pub(crate) type SseReplayQueue = VecDeque<(u64, Arc<SharedSseEvent>)>;