Skip to main content

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#![deny(missing_docs)]
9
10mod codec;
11mod error;
12mod frame;
13mod identity;
14mod secret;
15
16pub use codec::{DEFAULT_MAX_FRAME_LEN, FrameCodec, MAX_HELLO_FRAME_LEN};
17pub use error::ProtocolError;
18pub use frame::{ErrorCode, Frame, PeerObservation};
19pub use identity::{BindingId, PipeId, SessionId};
20pub use relaygate_destination::{Destination, DestinationName, Namespace};
21pub use secret::{BearerToken, MAX_BEARER_TOKEN_BYTES};