kane v0.1.0 Kane.Message

Summary

Types

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

Functions

data(message)

Specs

data(t) :: map
data([t]) :: map
encode_body(body)

Specs

encode_body(any) :: binary
from_subscription(mess)
from_subscription!(data)
json(message)
publish(message, topic)

Specs

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