Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data WebConfig = WebConfig {
- host :: !String
- port :: !Int
- store :: !Store
- maxLaggingBlocks :: !Int
- maxPendingTxs :: !Int
- minPeers :: !Int
- limits :: !WebLimits
- timeouts :: !WebTimeouts
- version :: !String
- noMempool :: !Bool
- statsStore :: !(Maybe Store)
- 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
- maxBodySize :: !Word32
- requestTimeout :: !Word32
- data WebTimeouts = WebTimeouts {}
- runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m ()
Web
WebConfig | |
|
ThingNotFound | |
ServerError | |
BadRequest | |
UserError !String | |
StringError !String | |
TxIndexConflict ![TxHash] | |
ServerTimeout | |
RequestTooLarge |
Instances
WebLimits | |
|
data WebTimeouts Source #
Instances
Show WebTimeouts Source # | |
Defined in Haskoin.Store.Web showsPrec :: Int -> WebTimeouts -> ShowS # show :: WebTimeouts -> String # showList :: [WebTimeouts] -> ShowS # | |
Default WebTimeouts Source # | |
Defined in Haskoin.Store.Web def :: WebTimeouts # | |
Eq WebTimeouts Source # | |
Defined in Haskoin.Store.Web (==) :: WebTimeouts -> WebTimeouts -> Bool # (/=) :: WebTimeouts -> WebTimeouts -> Bool # |
runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m () Source #