Event store backend. You only need to import this module if you're planning on implementing a custom event store backend.
- data EventStoreBackend = EventStoreBackend {
- esbStoreEvents :: GUID -> Int -> [RawEvent] -> IO ()
- esbRetrieveEvents :: GUID -> Int -> Source IO RawEvent
- esbEnumerateAllEvents :: Int -> Source IO RawEvent
- esbWriteSnapshot :: GUID -> RawSnapshot -> IO ()
- esbGetLatestSnapshot :: GUID -> IO (Maybe RawSnapshot)
- esbGetLatestVersion :: IO Int
- esbWithTransaction :: forall a. IO a -> IO a
- esbCloseEventStoreBackend :: IO ()
- type RawEvent = PersistedEvent ByteString
- data RawSnapshot = RawSnapshot {}
Documentation
data EventStoreBackend Source
Event stores are the backend used for reading and storing all the information about recorded events.
EventStoreBackend | |
|
type RawEvent = PersistedEvent ByteStringSource
Raw event type. The data associated with an event is not translated in any way.