View Source RabbitMQStream.OsirisChunk (rabbitmq_stream v0.2.1)

Struct that holds the data of a Osiris chunk, which is the format used by RabbitMQ Stream to store the stream data.

You can find more information at their Github repo

Link to this section Summary

Link to this section Types

@type chunk_type() :: :chunk_user | :chunk_track_delta | :chunk_track_snapshot
@type t() :: %{
  chunk_type: chunk_type(),
  num_entries: non_neg_integer(),
  num_records: non_neg_integer(),
  timestamp: integer(),
  epoch: non_neg_integer(),
  chunk_first_offset: non_neg_integer(),
  chunk_crc: integer(),
  data_length: non_neg_integer(),
  trailer_length: non_neg_integer(),
  data_entries: binary() | [ChunkTrackSnapshot.t()],
  trailer_entries: binary()
}