-record(event_store, { eventstore :: any(), load_events :: fun((any(), binary()) -> list(eventsourcing:event_envelop(any()))), commit :: fun((any(), eventsourcing:aggregate(any(), any(), any(), any()), list(any()), list({binary(), binary()})) -> list(eventsourcing:event_envelop(any()))) }).