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 -> IO [RawEvent]
- esbEnumerateAllEvents :: forall a. Int -> Enumerator RawEvent IO a
- esbWriteSnapshot :: GUID -> (Int, ByteString) -> IO ()
- esbGetLatestSnapshot :: GUID -> IO (Maybe (Int, ByteString))
- esbGetLatestVersion :: IO Int
- esbWithTransaction :: forall a. IO a -> IO a
- esbCloseEventStoreBackend :: IO ()
- type RawEvent = PersistedEvent ByteString
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.