railway_ipc v0.1.0 RailwayIpc.StreamBehaviour behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback

ack(channel, deliver_tag)

ack(channel :: map(), deliver_tag :: binary()) :: any()
Link to this callback

bind_queue(channel, %{})

bind_queue(channel :: map(), %{
  exchange: binary(),
  queue: binary(),
  consumer: binary()
}) :: :ok | {:error, any()}
Link to this callback

close_connection(connection)

close_connection(connection :: map() | nil) :: any()
Link to this callback

connect()

connect() :: {:ok, %{connection: map(), channel: map()}} | {:error, any()}
Link to this callback

publish(channel, exchange, message)

publish(channel :: map(), exchange :: binary(), message :: map()) :: any()