Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data WebConfig = WebConfig {
- host :: !String
- port :: !Int
- store :: !Store
- maxLaggingBlocks :: !Int
- maxPendingTxs :: !Int
- minPeers :: !Int
- limits :: !WebLimits
- version :: !String
- noMempool :: !Bool
- stats :: !(Maybe Stats)
- tickerRefresh :: !Int
- tickerURL :: !String
- priceHistoryURL :: !String
- noSlow :: !Bool
- noBlockchainInfo :: !Bool
- healthCheckInterval :: !Int
- data Except
- data WebLimits = WebLimits {
- maxItemCount :: !Word32
- maxFullItemCount :: !Word32
- maxOffset :: !Word32
- defItemCount :: !Word32
- xpubGap :: !Word32
- xpubGapInit :: !Word32
- txTimeout :: !Word64
- blockTimeout :: !Word64
- runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m ()
Web
WebConfig | |
|
ThingNotFound | |
ServerError | |
BadRequest | |
UserError !String | |
StringError !String | |
TxIndexConflict ![TxHash] | |
ServerTimeout | |
RequestTooLarge |
Instances
WebLimits | |
|
runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m () Source #