ExESDB.Repl.Observer (ex_esdb v0.0.11-alpha)
The Repl.Observer is a GenServer that:
- adds a transient subscription to the store.
- subscribes to the events emitted by the store, via Phoenix PubSub.
- prints the events to the console.
Summary
Functions
Returns a specification to start this module under a supervisor.
Starts an observer process for a given topic. ## Parameters
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Starts an observer process for a given topic. ## Parameters
* `store`: The store to consume events from (atom, default: the configured store).
* `type`: The type of subscription to consume events from (atom, default: `:by_stream`).
* `selector`: The selector of the subscription to consume events from (string, default: `"$all"`).
* `topic`: The topic to consume events from (string, default: `reg_gh:$all`).