Shout.Store (Shout v0.1.0) View Source
GenServer to persist the subscriptions. They are stored as an array
[
%Shout.Subscription{from: MyService, event: :created, to: &Email.notify/1},
...
]
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
register_subscription(Shout.Subscription.t(), pid() | module()) :: :ok | :exist
Specs
unregister_subscription(Shout.Subscription.t(), pid() | module()) :: :ok