View Source Kafkaesque.Message (Kafkaesque v1.0.0-rc.2)
Application-side representation of messages, published or not
Summary
Types
@type state() :: :failed | :pending | :published | :publishing
@type t() :: %Kafkaesque.Message{ __meta__: term(), attempt: pos_integer(), attempted_at: NaiveDateTime.t() | nil, attempted_by: String.t() | nil, body: String.t(), id: term(), inserted_at: NaiveDateTime.t() | nil, key: term(), partition: integer(), published_at: NaiveDateTime.t() | nil, state: state(), topic: String.t(), updated_at: NaiveDateTime.t() | nil }
Functions
@spec new(String.t(), String.t(), String.t(), String.t()) :: Ecto.Changeset.t()