ExESDB.StoreWorker (ex_esdb v0.1.6)

A GenServer wrapper around :khepri to act as a distributed event store. Inspired by EventStoreDB's API.

Summary

Functions

Returns a specification to start this module under a supervisor.

Get the current state of the store.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_state()

Get the current state of the store.

Returns

- `{:ok, state}`  if successful.
- `{:error, reason}` if unsuccessful.

start_link(opts)