Safe Haskell | None |
---|---|
Language | Haskell2010 |
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)
- webPriceGet :: !Int
- 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
WebConfig | |
|
ThingNotFound | |
ServerError | |
BadRequest | |
UserError !String | |
StringError !String | |
TxIndexConflict ![TxHash] | |
ServerTimeout | |
RequestTooLarge |
Instances
Eq Except | |
Ord Except | |
Show Except | |
Generic Except | |
ToJSON Except | |
Defined in Haskoin.Store.Data | |
FromJSON Except | |
Exception Except | |
Defined in Haskoin.Store.Data toException :: Except -> SomeException # fromException :: SomeException -> Maybe Except # displayException :: Except -> String # | |
NFData Except | |
Defined in Haskoin.Store.Data | |
ScottyError Except | |
Defined in Haskoin.Store.Data | |
type Rep Except | |
Defined in Haskoin.Store.Data type Rep Except = D1 ('MetaData "Except" "Haskoin.Store.Data" "haskoin-store-data-0.52.0-608c0a8feac4e198b551d5b426c74cba0a0f03f000e41c75ef2e4468c4748515" 'False) (((C1 ('MetaCons "ThingNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ServerError" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BadRequest" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)))) :+: ((C1 ('MetaCons "StringError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)) :+: C1 ('MetaCons "TxIndexConflict" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [TxHash]))) :+: (C1 ('MetaCons "ServerTimeout" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RequestTooLarge" 'PrefixI 'False) (U1 :: Type -> Type)))) |
WebLimits | |
|
data WebTimeouts Source #
WebTimeouts | |
|
Instances
Eq WebTimeouts Source # | |
Defined in Haskoin.Store.Web (==) :: WebTimeouts -> WebTimeouts -> Bool # (/=) :: WebTimeouts -> WebTimeouts -> Bool # | |
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 # |
runWeb :: (MonadUnliftIO m, MonadLoggerIO m) => WebConfig -> m () Source #