Conduit v0.10.7 Conduit.Adapter behaviour View Source

Defines the behavior for an adapter.

Link to this section Summary

Functions

Defines the useing module as implementing the Conduit.Adapter behavior

Link to this section Types

Link to this type broker() View Source
broker() :: module()
Link to this type subscribers() View Source
subscribers() :: %{optional(atom()) => {module(), Keyword.t()}}
Link to this type topology() View Source
topology() :: [{atom(), binary(), Keyword.t()}]

Link to this section Functions

Link to this macro __using__(opts) View Source (macro)

Defines the useing module as implementing the Conduit.Adapter behavior.

Link to this section Callbacks

Link to this callback publish(arg0, config, opts) View Source
publish(Conduit.Message.t(), config(), opts()) ::
  {:ok, Conduit.Message.t()} |
  {:error, binary() | atom()}
Link to this callback start_link(broker, topology, subscribers, config) View Source
start_link(broker(), topology(), subscribers(), config()) :: GenServer.on_start()