Disco v0.1.3 Disco.EventStore.Client behaviour View Source
The Disco.EventStore.Client
specification.
A client is used to interact with Disco.EventStore
while keeping details isolated.
Like other components in Disco
, even the Disco.EventStore.Client
is built as a
behaviour that implements default callbacks. This means that the simplest definition of
a client can be achieved like the following:
defmodule MyApp.EventStoreClient do
use Disco.EventStore.Client
end
Link to this section Summary
Callbacks
Called to emit an event to the event store
Called to obtain the current offset for a given cosumer. Returns 0
by default
Called to load events for a given aggregate id from event store
Called to load events to be consumed after a given offset
Called to load emitted events that need to be consumed
Called to update current offset counter
Link to this section Callbacks
Called to emit an event to the event store.
Called to obtain the current offset for a given cosumer. Returns 0
by default.
Called to load events for a given aggregate id from event store.
Called to load events to be consumed after a given offset.
Called to load emitted events that need to be consumed.
Called to update current offset counter.