View Source ExWal.Models.Entry (ex_wal v0.1.1)
entry struct for each record in WAL
Summary
Functions
Create a new entry
Types
@type t() :: %ExWal.Models.Entry{data: binary(), index: non_neg_integer()}
Functions
@spec new(non_neg_integer(), binary()) :: t()
Create a new entry
Examples
iex> Entry.new(1, "Hello Elixir")
%Entry{index: 1, data: "Hello Elixir"}