exda v0.1.1 Exda.Producer

Producers should be used to generate convience methods(:notify_{event_name}) to produce messages for all the attached consumer.

Link to this section Summary

Link to this section Types

Link to this type

bus_callback()
bus_callback() ::
  {:ok, any()} | {:error, any()} | {:halt, any()} | :error | :ok | :halt

Link to this type

bus_failure()
bus_failure() ::
  {:error,
   %Exda.Exception.UnkownConsumerError{__exception__: term(), message: term()}}
  | {:error, any()}

Link to this type

bus_halt()
bus_halt() ::
  {:halt,
   %Exda.Exception.UnkownConsumerHalt{__exception__: term(), message: term()}}
  | {:halt, any()}

Link to this type

bus_responses()
bus_responses() :: [{module(), bus_success() | bus_failure() | bus_halt()}]

Link to this type

bus_success()
bus_success() :: {:ok, pid()} | {:ok, :empty} | {:ok, any()}

Link to this type

producer_response()
producer_response() :: {:ok, bus_responses()}