| 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)
- 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
Constructors
| WebConfig | |
Fields
| |
Constructors
| 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 Methods 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)))) | |
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 #