relaygate_protocol/lib.rs
1//! Internal SDK–Gateway wire contract.
2//!
3//! Published only as a dependency of `relaygate-sdk`; it is not a stable
4//! application API.
5//!
6//! This crate owns framing and identifiers only. Socket ownership, reconnect,
7//! admission, and routing policy belong to the SDK and Gateway crates.
8
9mod codec;
10mod error;
11mod frame;
12mod identity;
13mod secret;
14
15pub use codec::{DEFAULT_MAX_FRAME_LEN, FrameCodec, MAX_HELLO_FRAME_LEN};
16pub use error::ProtocolError;
17pub use frame::{ErrorCode, Frame, PeerObservation};
18pub use identity::{BindingId, PipeId, SessionId};
19pub use relaygate_destination::{Destination, DestinationName, Namespace};
20pub use secret::{BearerToken, MAX_BEARER_TOKEN_BYTES};