Skip to main content

Crate ursula_stream

Crate ursula_stream 

Source
Expand description

Durable Streams state machine for Ursula.

Module map:

  • [command]: replicated command variants applied to the state machine.
  • [response]: result variants and error codes returned per command.
  • [model]: persistent data types (metadata, segments, producer state, plans).
  • [snapshot]: snapshot wire format and restoration errors.
  • [state_machine]: the deterministic StreamStateMachine that drives a Raft group.
  • [validate]: bucket/stream id validation used by HTTP and Raft entry points.

Structs§

AppendStreamInput
ColdFlushCandidate
ColdGcEntry
One unit of deferred cold-storage reclamation. Enqueued deterministically in the state machine when a stream’s cold objects become unreferenced, drained asynchronously by the leader’s background GC worker.
HotPayloadSegment
ObjectPayloadRef
ProducerAppendRecord
ProducerSnapshot
StreamAttrs
StreamBatchAppend
StreamBatchAppendItem
StreamBootstrapPlan
StreamIntegritySnapshot
StreamMessageRecord
StreamMetadata
StreamRead
StreamReadColdIndexSegment
StreamReadColdSegment
StreamReadObjectSegment
StreamReadPlan
StreamSnapshot
StreamSnapshotEntry
StreamStateMachine
StreamVisibleSnapshot

Enums§

ColdGcTarget
StreamCommand
StreamErrorCode
StreamErrorContext
StreamReadSegment
StreamResponse
StreamSnapshotError
StreamStatus

Constants§

COLD_INDEX_PAGE_SPAN_BYTES

Functions§

validate_bucket_id
validate_stream_id

Type Aliases§

ColdChunkRef
ExternalPayloadRef
ProducerRequest