AmqpSidecar.PublisherBehaviour behaviour (amqp_sidecar v0.1.0)

Copy Markdown

Behaviour for message publishing, allowing the HTTP layer to be tested with AmqpSidecar.Publisher.Mock (Mox).

Summary

Callbacks

publish(t, t, t, arg4)

@callback publish(String.t(), String.t(), String.t(), map() | list()) ::
  :ok | {:error, term()}