relaygate_protocol/lib.rs
1//! Workspace-internal SDK–Gateway wire contract.
2//!
3//! This crate owns framing and identifiers only. Socket ownership, reconnect,
4//! admission, and routing policy belong to the SDK and Gateway crates.
5
6mod codec;
7mod error;
8mod frame;
9mod identity;
10mod secret;
11
12pub use codec::{DEFAULT_MAX_FRAME_LEN, FrameCodec, MAX_HELLO_FRAME_LEN};
13pub use error::ProtocolError;
14pub use frame::{ErrorCode, Frame, PeerObservation};
15pub use identity::{BindingId, PipeId, SessionId};
16pub use relaygate_destination::{Destination, DestinationName, Namespace};
17pub use secret::{BearerToken, MAX_BEARER_TOKEN_BYTES};