cardano-streaming-1.1.0.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Streaming

Synopsis

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 #

Instances

Instances details
Functor ChainSyncEvent Source # 
Instance details

Defined in Cardano.Streaming

Methods

fmap :: (a -> b) -> ChainSyncEvent a -> ChainSyncEvent b Source #

(<$) :: a -> ChainSyncEvent b -> ChainSyncEvent a Source #

Show a => Show (ChainSyncEvent a) Source # 
Instance details

Defined in Cardano.Streaming

Generic (ChainSyncEvent a) Source # 
Instance details

Defined in Cardano.Streaming

Associated Types

type Rep (ChainSyncEvent a) :: Type -> Type Source #

type Rep (ChainSyncEvent a) Source # 
Instance details

Defined in Cardano.Streaming