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

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

register_subscription(subscription, pid)

View Source

Specs

register_subscription(Shout.Subscription.t(), pid() | module()) :: :ok | :exist
Link to this function

subscriptions(module, event, pid)

View Source
Link to this function

unregister_subscription(subscription, pid)

View Source

Specs

unregister_subscription(Shout.Subscription.t(), pid() | module()) :: :ok