Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ApiLimit = ApiLimit {}
- emptyApiLimit :: ApiLimit
- data Limit a = Limit {}
- type RateLimit = Limit RateLimitConfig
- type DepthLimit = Limit MaxDepth
- type NodeLimit = Limit MaxNodes
- type TimeLimit = Limit MaxTime
- type BatchLimit = Limit MaxBatchSize
- data RateLimitConfig = RateLimitConfig {}
- data UniqueParamConfig
- newtype MaxDepth = MaxDepth {
- unMaxDepth :: Int
- newtype MaxNodes = MaxNodes {
- unMaxNodes :: Int
- newtype MaxTime = MaxTime {}
- newtype MaxBatchSize = MaxBatchSize {}
Documentation
Instances
Instances
FromJSON a => FromJSON (Limit a) Source # | |
ToJSON a => ToJSON (Limit a) Source # | |
(HasCodec a, Typeable a) => HasCodec (Limit a) Source # | |
Generic (Limit a) Source # | |
Show a => Show (Limit a) Source # | |
Eq a => Eq (Limit a) Source # | |
type Rep (Limit a) Source # | |
Defined in Hasura.RQL.Types.ApiLimit type Rep (Limit a) = D1 ('MetaData "Limit" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Limit" 'PrefixI 'True) (S1 ('MetaSel ('Just "_lGlobal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "_lPerRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map RoleName a)))) |
type RateLimit = Limit RateLimitConfig Source #
type DepthLimit = Limit MaxDepth Source #
type BatchLimit = Limit MaxBatchSize Source #
data RateLimitConfig Source #
Instances
data UniqueParamConfig Source #
The unique key using which an authenticated client can be identified
UPCSessionVar [Text] | it can be a list of session variable (like session var in |
UPCIpAddress | or it can be an IP address |
Instances
Instances
FromJSON MaxTime Source # | |
ToJSON MaxTime Source # | |
HasCodec MaxTime Source # | |
Generic MaxTime Source # | |
Show MaxTime Source # | |
Eq MaxTime Source # | |
Ord MaxTime Source # | |
ToTxt MaxTime Source # | Defers to the (illegal) DiffTime Show instance.
|
type Rep MaxTime Source # | |
Defined in Hasura.RQL.Types.ApiLimit |
newtype MaxBatchSize Source #