Current section

Files

Jump to
eventsourcing include eventsourcing_EventSourcing.hrl
Raw

include/eventsourcing_EventSourcing.hrl

-record(event_sourcing, {
event_store :: eventsourcing:event_store(any(), any(), any(), any(), any()),
queries :: list(fun((binary(), list(eventsourcing:event_envelop(any()))) -> nil)),
handle :: fun((any(), any()) -> {ok, list(any())} | {error, any()}),
apply :: fun((any(), any()) -> any()),
empty_state :: any()
}).