lib/lapin/message.ex
defmodule Lapin.Message do
@moduledoc """
Lapin Message struct
"""
@typedoc """
Message metadata
"""
@type meta :: map
@typedoc """
Message payload
"""
@type payload :: term
@typedoc """
Lapin Message container
"""
@type t :: %__MODULE__{meta: meta, payload: payload}
defstruct meta: %{}, payload: <<>>
end