Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Haskoin.Store.Web
Contents
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
Constructors
WebConfig | |
Fields
|
Constructors
ThingNotFound | |
ServerError | |
BadRequest | |
UserError !String | |
StringError !String | |
TxIndexConflict ![TxHash] | |
ServerTimeout | |
RequestTooLarge |
Instances
Constructors
WebLimits | |
Fields
|
runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m () Source #