Expand description
Message types and wire protocol shared by all dora components.
Binary encoding is postcard: a compact,
non-self-describing serde format with a stable, documented wire spec. The
encoding is positional, so field order and enum variant order are part of
the protocol — see metadata::Metadata::CURRENT_VERSION for how an
incompatible peer is detected.
Re-exports§
pub use uhlc;pub use aligned_vec;pub use arrow_data;pub use arrow_schema;
Modules§
- auth
- Shared-token authentication for coordinator connections.
- bulk_
bytes - Bulk-payload serde helpers. Public so an out-of-tree extension can give its
own opaque payloads the same treatment dora gives its own, rather than
duplicating the visitor — see
docs/extensions.md. Bulk-payload serde forAVec<u8, ConstAlign<128>>. - cli_
to_ coordinator - common
- config
- coordinator_
to_ cli - coordinator_
to_ daemon - daemon_
to_ coordinator - daemon_
to_ daemon - daemon_
to_ node - descriptor
- Dataflow descriptor types for YAML-based dataflow specifications.
- id
- integration_
testing_ format - Use these types for integration testing nodes.
- metadata
- node_
to_ daemon - ws_
protocol - WebSocket message protocol for the control plane.
Structs§
- BuildId
- Unique identifier for one
dora buildof a dataflow. - Session
Id - Unique identifier for a CLI/coordinator session.
Constants§
- MAX_
MESSAGE_ BYTES - Maximum allowed message size over TCP (64 MiB).
- TCP_
READ_ TIMEOUT - Read timeout for TCP/socket connections (30 seconds).
- TOPIC_
DATA_ PROTOCOL_ VERSION - Encoding version of the WebSocket topic data channel’s binary frames
(see
docs/websocket-topic-data-channel.md). - VERSION
- The version of the dora-message crate
Functions§
- current_
crate_ version - decode
- Decode
bytesin dora’s binary wire format, requiring the value to consume the entire slice. - encode
- Encode
valuein dora’s binary wire format. - encode_
presized encode, for a message carryingbulk_bytesbytes of bulk payload.- topic_
protocol_ mismatch_ message - Rejection message for a topic-data peer whose binary-frame encoding is not
TOPIC_DATA_PROTOCOL_VERSION.
Type Aliases§
- Dataflow
Id - Unique identifier for a dataflow instance.