| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Streaming
Synopsis
- withChainSyncEventStream :: FilePath -> NetworkId -> [ChainPoint] -> (Stream (Of (ChainSyncEvent (BlockInMode CardanoMode))) IO r -> IO b) -> IO b
- data ChainSyncEvent a
- data ChainSyncEventException = NoIntersectionFound
Documentation
withChainSyncEventStream Source #
Arguments
| :: FilePath | Path to the node socket |
| -> NetworkId | |
| -> [ChainPoint] | The point on the chain to start streaming from |
| -> (Stream (Of (ChainSyncEvent (BlockInMode CardanoMode))) IO r -> IO b) | The stream consumer |
| -> IO b |
withChainSyncEventStream uses the chain-sync mini-protocol to
connect to a locally running node and fetch blocks from the given
starting point.
data ChainSyncEvent a Source #
Constructors
| RollForward a ChainTip | |
| RollBackward ChainPoint ChainTip |
Instances
data ChainSyncEventException Source #
Constructors
| NoIntersectionFound |
Instances
| Show ChainSyncEventException Source # | |
Defined in Cardano.Streaming | |
| Exception ChainSyncEventException Source # | |
Defined in Cardano.Streaming | |