View Source ebus_ps_local_sup (ebus v0.3.0)
This is an Erlang clone of the original Phoenix.PubSub.LocalSupervisor module. Copyright (c) 2014 Chris McCord
Local PubSub server supervisor.
Used by PubSub adapters to handle "local" subscriptions. Defines an ets dispatch table for routing subscription requests. Extendable by PubSub adapters by providing a list ofdispatch_rules to extend the dispatch table.See also: ebus_ps_pg2.
Link to this section Summary
Link to this section Types
-type command() :: broadcast | subscribe | unsubscribe.
-type dispatch_rule() :: {command(), module(), [term()]}.
Link to this section Functions
-spec start_link(atom(), pos_integer(), [dispatch_rule()]) -> supervisor:startlink_ret().