Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StoreConfig = StoreConfig {
- maxPeers :: !Int
- initPeers :: ![String]
- discover :: !Bool
- db :: !FilePath
- net :: !Network
- redis :: !(Maybe String)
- ctx :: !Ctx
- initGap :: !Word32
- gap :: !Word32
- redisMinAddrs :: !Int
- redisMaxKeys :: !Integer
- noMempool :: !Bool
- wipeMempool :: !Bool
- syncMempool :: !Bool
- peerTimeout :: !NominalDiffTime
- maxPeerLife :: !NominalDiffTime
- connect :: !(SockAddr -> WithConnection)
- stats :: !(Maybe Stats)
- redisSyncInterval :: !Int
- bloom :: !Bool
- data Store = Store {
- peerMgr :: !PeerMgr
- chain :: !Chain
- block :: !BlockStore
- db :: !DatabaseReader
- cache :: !(Maybe CacheConfig)
- pub :: !(Publisher StoreEvent)
- net :: !Network
- ctx :: !Ctx
- withStore :: (MonadLoggerIO m, MonadUnliftIO m) => StoreConfig -> (Store -> m a) -> m a
Documentation
data StoreConfig Source #
Configuration for a Store
.
StoreConfig | |
|
Store mailboxes.
Store | |
|
withStore :: (MonadLoggerIO m, MonadUnliftIO m) => StoreConfig -> (Store -> m a) -> m a Source #