Safe Haskell | None |
---|
- data PersistedEvent e = PersistedEvent {
- peAggregateGUID :: !GUID
- peEvent :: !e
- peSequenceNumber :: !Int
- class EventStoreBackend esb
- data GUID
- data Repository e b
- enumerateAndStreamEvents :: (Show e, Serializable e, EventStoreBackend b) => Repository e b -> Source (ResourceT IO) [PersistedEvent e]
- enumerateEventStore :: (Serializable e, EventStoreBackend b) => Repository e b -> Source (ResourceT IO) [PersistedEvent e]
Documentation
data PersistedEvent e
Persisted Event.
PersistedEvent | |
|
Functor PersistedEvent | |
Eq e => Eq (PersistedEvent e) | |
Ord e => Ord (PersistedEvent e) | |
Show e => Show (PersistedEvent e) | |
NFData e_1627409331 => NFData (PersistedEvent e_1627409331) |
class EventStoreBackend esb
Event stores are the backend used for reading and storing all the information about recorded events.
data GUID
A Globally Unique IDentifier.
data Repository e b Source
Repository consisting of an event store and an event bus.
enumerateAndStreamEvents :: (Show e, Serializable e, EventStoreBackend b) => Repository e b -> Source (ResourceT IO) [PersistedEvent e]Source
Enumerate all events which satisfy criteria and stream all new events from repository. All events which arrive while enumerating are buffered until enumeration completes.
enumerateEventStore :: (Serializable e, EventStoreBackend b) => Repository e b -> Source (ResourceT IO) [PersistedEvent e]Source
Enumerate all events which satisfy certain criteria from event store associated with repository.