EventStore v1.0.2 EventStore.Registration.LocalRegistry View Source
Pub/sub using Elixir's local Registry
module, restricted to running on a
single node only.
Link to this section Summary
Functions
Broadcasts message on given topic.
Return the local supervisor child spec.
Subscribes the caller to the given topic.
Link to this section Functions
Broadcasts message on given topic.
Link to this function
child_spec(event_store)
View Sourcechild_spec(module()) :: [:supervisor.child_spec()]
Return the local supervisor child spec.
Link to this function
subscribe(event_store, topic, opts)
View Sourcesubscribe(module(), binary(), selector: (EventStore.RecordedEvent.t() -> any()), mapper: (EventStore.RecordedEvent.t() -> any()) ) :: :ok | {:error, term()}
Subscribes the caller to the given topic.