Skip to main content

Crate relaygate_protocol

Crate relaygate_protocol 

Source
Expand description

Internal SDK–Gateway wire contract.

Published only as a dependency of relaygate-sdk; it is not a stable application API.

This crate owns framing and identifiers only. Socket ownership, reconnect, admission, and routing policy belong to the SDK and Gateway crates.

Structs§

BearerToken
Bounded operation credential carried only by PUBLISH and DIAL.
BindingId
Identifies one live route binding.
Destination
A fully specified exact routing key.
DestinationName
A validated dot-separated destination name within a Namespace.
FrameCodec
Length-delimited codec for SDK–Gateway Frame values.
Namespace
A validated single-label tenant or application routing namespace.
PipeId
Identifies one Pipe as its origin Relay session plus a session-local counter.
SessionId
Identifies one SDK-Gateway transport-session incarnation.

Enums§

ErrorCode
Stable wire error codes whose discriminants are part of protocol version 3.
Frame
Wire messages exchanged within one SDK–Gateway session.
PeerObservation
Whether a peer may have observed a failed control operation.
ProtocolError
Failures raised while encoding or decoding an SDK–Gateway frame.

Constants§

DEFAULT_MAX_FRAME_LEN
Default payload limit a FrameCodec accepts, in bytes.
MAX_BEARER_TOKEN_BYTES
Maximum UTF-8 byte length of an operation bearer token.
MAX_HELLO_FRAME_LEN
HELLO carries no credential or payload; PUBLISH and DIAL carry authorization.