hydra-node-0.21.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Events.FileBased

Description

A file-based event source and sink using JSON encoding.

This serves as an example of how to create an EventSource and EventSink.

Synopsis

Documentation

eventPairFromPersistenceIncremental :: (ToJSON e, FromJSON e, HasEventId e, MonadSTM m) => PersistenceIncremental e m -> m (EventSource e m, EventSink e m) Source #

A basic file based event source and sink defined using an PersistenceIncremental handle.