Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StoreConfig = StoreConfig {
- storeConfMaxPeers :: !Int
- storeConfInitPeers :: ![HostPort]
- storeConfDiscover :: !Bool
- storeConfDB :: !FilePath
- storeConfNetwork :: !Network
- storeConfCache :: !(Maybe String)
- storeConfInitialGap :: !Word32
- storeConfGap :: !Word32
- storeConfCacheMin :: !Int
- storeConfMaxKeys :: !Integer
- storeConfNoMempool :: !Bool
- storeConfWipeMempool :: !Bool
- storeConfPeerTimeout :: !NominalDiffTime
- storeConfPeerMaxLife :: !NominalDiffTime
- storeConfConnect :: !(SockAddr -> WithConnection)
- storeConfCacheRefresh :: !Int
- data Store = Store {
- storeManager :: !PeerManager
- storeChain :: !Chain
- storeBlock :: !BlockStore
- storeDB :: !DatabaseReader
- storeCache :: !(Maybe CacheConfig)
- storePublisher :: !(Publisher StoreEvent)
- storeNetwork :: !Network
- 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 #