kane v0.9.0 Kane.Message

Link to this section Summary

Link to this section Types

Link to this type

t()
t() :: %Kane.Message{
  ack_id: String.t() | nil,
  attributes: Map.t(),
  data: any(),
  id: String.t() | nil,
  publish_time: String.t() | nil
}

Link to this section Functions

Link to this function

data(message)
data(t()) :: map()
data([t()]) :: map()

Link to this function

encode_body(body)
encode_body(any()) :: binary()

Link to this function

from_subscription(map)

Link to this function

from_subscription!(data)

Link to this function

publish(message, topic)
publish(binary(), binary()) :: {:ok, t()} | Kane.Client.Response.Error.t()
publish(t(), Kane.Topic.t()) ::
  {:ok, t()} | Kane.Client.Response.Error.t()
publish([t()], Kane.Topic.t()) ::
  {:ok, [t()]} | Kane.Client.Response.Error.t()