Copyright | (C) 2016 Yorick Laupa |
---|---|
License | (see the file LICENSE) |
Maintainer | Yorick Laupa <yo.eight@gmail.com> |
Stability | provisional |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module exposes a GetEventStore implementation of Store interface.
Synopsis
- data GetEventStore
- gesConnection :: GetEventStore -> Connection
- gesStore :: Settings -> ConnectionType -> IO GetEventStore
- fromGesEvent :: ResolvedEvent -> SavedEvent
Documentation
data GetEventStore Source #
Instances
Store GetEventStore Source # | |
Defined in EventSource.Store.GetEventStore appendEvents :: (EncodeEvent a, MonadBase IO m) => GetEventStore -> StreamName -> ExpectedVersion -> [a] -> m (Async EventNumber) # readStream :: MonadBase IO m => GetEventStore -> StreamName -> Batch -> Stream (Of SavedEvent) (ExceptT ReadFailure m) () # subscribe :: MonadBase IO m => GetEventStore -> StreamName -> m Subscription # toStore :: GetEventStore -> SomeStore # |
gesStore :: Settings -> ConnectionType -> IO GetEventStore Source #
Returns a GetEventStore based store implementation.
fromGesEvent :: ResolvedEvent -> SavedEvent Source #
Converts a GetEventStore event to a more abstract SavedEvent
event.