Current section
Files
Jump to
Current section
Files
include/eventsourcing_EventStore.hrl
-record(event_store, {
eventstore :: any(),
load_events :: fun((any(), binary(), integer()) -> {ok,
list(eventsourcing:event_envelop(any()))} |
{error, eventsourcing:event_sourcing_error(any())}),
commit :: fun((any(), eventsourcing:aggregate(any(), any(), any(), any()), list(any()), list({binary(),
binary()})) -> {ok,
{list(eventsourcing:event_envelop(any())), integer()}} |
{error, eventsourcing:event_sourcing_error(any())}),
save_snapshot :: fun((any(), eventsourcing:snapshot(any())) -> {ok, nil} |
{error, eventsourcing:event_sourcing_error(any())}),
load_snapshot :: fun((any(), binary()) -> {ok,
gleam@option:option(eventsourcing:snapshot(any()))} |
{error, eventsourcing:event_sourcing_error(any())})
}).