spotter v0.3.0 Spotter.Worker behaviour

Base worker module that works with AMQP.

Link to this section Summary

Callbacks

Create a link to worker process. Used in supervisors

Get queue status

Link to this section Callbacks

Link to this callback start_link()
start_link() :: Supervisor.on_start()

Create a link to worker process. Used in supervisors.

Link to this callback status()
status() ::
  {:ok,
   %{consumer_count: integer(), message_count: integer(), queue: String.t()}}
  | {:error, String.t()}

Get queue status.