Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ResourceLimits = ResourceLimits {
- runResourceLimits :: forall m a. (MonadBaseControl IO m, MonadError QErr m) => m a -> m a
- class Monad m => HasResourceLimits m where
- askHTTPHandlerLimit :: m ResourceLimits
- askGraphqlOperationLimit :: RequestId -> UserInfo -> ApiLimit -> m ResourceLimits
Documentation
data ResourceLimits Source #
Resource limits, represented by a function which modifies IO actions to
enforce those limits by throwing errors using MonadError
in the case
where they are exceeded.
ResourceLimits | |
|
class Monad m => HasResourceLimits m where Source #
Monads which support resource (memory, CPU time, etc.) limiting
Nothing
askHTTPHandlerLimit :: m ResourceLimits Source #
default askHTTPHandlerLimit :: (m ~ t n, MonadTrans t, HasResourceLimits n) => m ResourceLimits Source #
askGraphqlOperationLimit :: RequestId -> UserInfo -> ApiLimit -> m ResourceLimits Source #
default askGraphqlOperationLimit :: (m ~ t n, MonadTrans t, HasResourceLimits n) => RequestId -> UserInfo -> ApiLimit -> m ResourceLimits Source #
Instances
HasResourceLimits AppM Source # | |
Defined in Hasura.App | |
HasResourceLimits m => HasResourceLimits (Handler m) Source # | |
Defined in Hasura.Server.App | |
HasResourceLimits m => HasResourceLimits (TraceT m) Source # | |
Defined in Hasura.Server.Limits | |
HasResourceLimits m => HasResourceLimits (ExceptT e m) Source # | |
Defined in Hasura.Server.Limits askHTTPHandlerLimit :: ExceptT e m ResourceLimits Source # askGraphqlOperationLimit :: RequestId -> UserInfo -> ApiLimit -> ExceptT e m ResourceLimits Source # | |
HasResourceLimits m => HasResourceLimits (ReaderT r m) Source # | |
Defined in Hasura.Server.Limits askHTTPHandlerLimit :: ReaderT r m ResourceLimits Source # askGraphqlOperationLimit :: RequestId -> UserInfo -> ApiLimit -> ReaderT r m ResourceLimits Source # |