Kayrock.MessageSet (kayrock v1.0.0-rc1)

Copy Markdown View Source

Represents a set of messages with the v0 or v1 format

This is the old format that KafkaEx supported

See https://kafka.apache.org/documentation/#recordbatch

Summary

Types

t()

@type t() :: %Kayrock.MessageSet{magic: term(), messages: term()}

Functions

deserialize(data)

@spec deserialize(binary()) :: t()

deserialize(data, magic)

serialize(message_set)

@spec serialize(t()) :: iodata()