View Source Kafkaesque.Message (Kafkaesque v1.0.0-rc.1)

Application-side representation of messages, published or not

Link to this section Summary

Link to this section 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,
  partition: integer(),
  published_at: NaiveDateTime.t() | nil,
  state: state(),
  topic: String.t(),
  updated_at: NaiveDateTime.t() | nil
}

Link to this section Functions

Link to this function

new(topic, partition, body)

View Source
@spec new(String.t(), String.t(), String.t()) :: Ecto.Changeset.t()