View Source Mammoth.Subscriber (mammoth v0.1.0)
Keep track of subscriptions to topics or queues.
example
Example
{:ok, pid} = Subscriber.start_link()
Subscriber.subscribe(pid, "foo.bar")
Subscriber.subscribe(pid, "foo2.bar")
%{id: id} = Subscriber.get_subscription(pid, "foo.bar")
Subscriber.unsubscribe(pid, "foo2.bar")
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.