EventStore v1.0.2 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
Broadcasts message on given topic.
Link to this function
child_spec(event_store)
View Sourcechild_spec(module()) :: [:supervisor.child_spec()]
Return an optional supervisor spec for the registry.
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.