View Source RabbitMQStream.Message.Buffer (rabbitmq_stream v0.2.0)

Link to this section Summary

Functions

Receives the binary, parses it into a command if possible, buffering when necessary.

Link to this section Types

@type t() :: %RabbitMQStream.Message.Buffer{
  cfg: %{required(atom()) => any()},
  commands: :queue.queue(),
  data: nil | binary() | {non_neg_integer(), iodata()},
  frames: [iodata()]
}

Link to this section Functions

Link to this function

incoming_data(data, state)

View Source

Receives the binary, parses it into a command if possible, buffering when necessary.

Link to this function

parse_frames(frames, queue)

View Source