Safe Haskell | None |
---|---|
Language | Haskell2010 |
Haskoin.Store.Web
Contents
Synopsis
- data WebConfig = WebConfig {
- webHost :: !String
- webPort :: !Int
- webStore :: !Store
- webMaxDiff :: !Int
- webMaxPending :: !Int
- webMaxLimits :: !WebLimits
- webTimeouts :: !WebTimeouts
- webVersion :: !String
- webNoMempool :: !Bool
- webStats :: !(Maybe Store)
- data Except
- data WebLimits = WebLimits {
- maxLimitCount :: !Word32
- maxLimitFull :: !Word32
- maxLimitOffset :: !Word32
- maxLimitDefault :: !Word32
- maxLimitGap :: !Word32
- maxLimitInitialGap :: !Word32
- data WebTimeouts = WebTimeouts {
- txTimeout :: !Word64
- blockTimeout :: !Word64
- runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m ()
Web
Constructors
WebConfig | |
Fields
|
Constructors
ThingNotFound | |
ServerError | |
BadRequest | |
UserError !String | |
StringError !String | |
BlockTooLarge | |
TxIndexConflict ![TxHash] |
Instances
Constructors
WebLimits | |
Fields
|
data WebTimeouts Source #
Constructors
WebTimeouts | |
Fields
|
Instances
Eq WebTimeouts Source # | |
Defined in Haskoin.Store.Web | |
Show WebTimeouts Source # | |
Defined in Haskoin.Store.Web Methods showsPrec :: Int -> WebTimeouts -> ShowS # show :: WebTimeouts -> String # showList :: [WebTimeouts] -> ShowS # | |
Default WebTimeouts Source # | |
Defined in Haskoin.Store.Web Methods def :: WebTimeouts # |
runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m () Source #