EventStore v0.17.0 EventStore.Registration.DistributedRegistry View Source
Pub/sub using a local registry and broadcasting messages to all connected nodes.
Link to this section Summary
Functions
Broadcasts message on given topic.
Return an optional supervisor spec for the registry.
Subscribes the caller to the given topic.
Link to this section Functions
Link to this function
broadcast(topic, message) View Source
Broadcasts message on given topic.
Link to this function
child_spec()
View Source
child_spec()
View Source
child_spec() :: [:supervisor.child_spec()]
child_spec() :: [:supervisor.child_spec()]
Return an optional supervisor spec for the registry.
Link to this function
subscribe(topic, opts)
View Source
subscribe(topic, opts)
View Source
subscribe(binary(),
selector: (EventStore.RecordedEvent.t() -> any()),
mapper: (EventStore.RecordedEvent.t() -> any())
) :: :ok | {:error, term()}
subscribe(binary(), selector: (EventStore.RecordedEvent.t() -> any()), mapper: (EventStore.RecordedEvent.t() -> any()) ) :: :ok | {:error, term()}
Subscribes the caller to the given topic.