Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data BlockSource
- = Callback {
- callbackOptionsSocketPath :: String
- callbackOptionsNodeConfigPath :: String
- callbackOptionsStart :: Maybe ChainPoint
- callbackOptionsEnd :: Maybe SlotNo
- | CallbackPipelined { }
- | RewindableIndex {
- rewindableIndexOptionsSocketPath :: String
- rewindableIndexOptionsStart :: Maybe ChainPoint
- rewindableIndexOptionsEnd :: Maybe SlotNo
- rewindableIndexNetworkId :: NetworkId
- = Callback {
- mkCallback :: (LocalNodeConnectInfo CardanoMode -> ChainPoint -> (ChainSyncEvent (BlockInMode CardanoMode) -> IO ()) -> IO b) -> FilePath -> FilePath -> Maybe ChainPoint -> Maybe SlotNo -> IO b
- data NoopHandler = NoopHandler
- type NoopIndexer = State NoopHandler
- rewindableIndex :: FilePath -> Maybe ChainPoint -> Maybe SlotNo -> NetworkId -> IO ()
- printAndDieWhenEnd :: SlotNo -> BlockInMode CardanoMode -> IO ()
Measuer local chainsync speed
data BlockSource #
Callback | |
| |
CallbackPipelined | |
RewindableIndex | |
|
Instances
Show BlockSource # | |
Defined in Mafoc.Speed showsPrec :: Int -> BlockSource -> ShowS # show :: BlockSource -> String # showList :: [BlockSource] -> ShowS # |
mkCallback :: (LocalNodeConnectInfo CardanoMode -> ChainPoint -> (ChainSyncEvent (BlockInMode CardanoMode) -> IO ()) -> IO b) -> FilePath -> FilePath -> Maybe ChainPoint -> Maybe SlotNo -> IO b #
Rewindable index
data NoopHandler #
Instances
Buffered NoopHandler # | |
Defined in Mafoc.Speed persistToStorage :: Foldable f => f (StorableEvent NoopHandler) -> NoopHandler -> StorableMonad NoopHandler NoopHandler getStoredEvents :: NoopHandler -> StorableMonad NoopHandler [StorableEvent NoopHandler] | |
Rewindable NoopHandler # | |
Defined in Mafoc.Speed rewindStorage :: StorablePoint NoopHandler -> NoopHandler -> StorableMonad NoopHandler NoopHandler | |
HasPoint (StorableEvent NoopHandler) ChainPoint # | |
Defined in Mafoc.Speed getPoint :: StorableEvent NoopHandler -> ChainPoint | |
data StorableEvent NoopHandler # | |
Defined in Mafoc.Speed | |
type StorableMonad NoopHandler # | |
Defined in Mafoc.Speed | |
type StorablePoint NoopHandler # | |
Defined in Mafoc.Speed type StorablePoint NoopHandler = ChainPoint |
type NoopIndexer = State NoopHandler #
Exit loops with exception
printAndDieWhenEnd :: SlotNo -> BlockInMode CardanoMode -> IO () #