Safe Haskell | None |
---|---|
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
- data RateLimitConfig = RateLimitConfig {}
- data UniqueParamConfig
- = UPCSessionVar [Text]
- | UPCIpAddress
- newtype MaxDepth = MaxDepth {
- unMaxDepth :: Int
- newtype MaxNodes = MaxNodes {
- unMaxNodes :: Int
- newtype MaxTime = MaxTime {}
Documentation
Instances
Instances
Eq a => Eq (Limit a) Source # | |
Show a => Show (Limit a) Source # | |
Generic (Limit a) Source # | |
FromJSON a => FromJSON (Limit a) Source # | |
Defined in Hasura.RQL.Types.ApiLimit parseJSON :: Value -> Parser (Limit a) parseJSONList :: Value -> Parser [Limit a] | |
ToJSON a => ToJSON (Limit a) Source # | |
Defined in Hasura.RQL.Types.ApiLimit toEncoding :: Limit a -> Encoding toJSONList :: [Limit a] -> Value toEncodingList :: [Limit a] -> Encoding | |
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 (InsOrdHashMap RoleName a)))) |
type RateLimit = Limit RateLimitConfig Source #
type DepthLimit = Limit MaxDepth 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
Eq MaxDepth Source # | |
Ord MaxDepth Source # | |
Defined in Hasura.RQL.Types.ApiLimit | |
Show MaxDepth Source # | |
Generic MaxDepth Source # | |
FromJSON MaxDepth Source # | |
Defined in Hasura.RQL.Types.ApiLimit parseJSON :: Value -> Parser MaxDepth parseJSONList :: Value -> Parser [MaxDepth] | |
ToJSON MaxDepth Source # | |
Defined in Hasura.RQL.Types.ApiLimit toEncoding :: MaxDepth -> Encoding toJSONList :: [MaxDepth] -> Value toEncodingList :: [MaxDepth] -> Encoding | |
type Rep MaxDepth Source # | |
Defined in Hasura.RQL.Types.ApiLimit |
Instances
Eq MaxNodes Source # | |
Ord MaxNodes Source # | |
Defined in Hasura.RQL.Types.ApiLimit | |
Show MaxNodes Source # | |
Generic MaxNodes Source # | |
FromJSON MaxNodes Source # | |
Defined in Hasura.RQL.Types.ApiLimit parseJSON :: Value -> Parser MaxNodes parseJSONList :: Value -> Parser [MaxNodes] | |
ToJSON MaxNodes Source # | |
Defined in Hasura.RQL.Types.ApiLimit toEncoding :: MaxNodes -> Encoding toJSONList :: [MaxNodes] -> Value toEncodingList :: [MaxNodes] -> Encoding | |
type Rep MaxNodes Source # | |
Defined in Hasura.RQL.Types.ApiLimit |
Instances
Eq MaxTime Source # | |
Ord MaxTime Source # | |
Show MaxTime Source # | |
Generic MaxTime Source # | |
FromJSON MaxTime Source # | |
Defined in Hasura.RQL.Types.ApiLimit parseJSON :: Value -> Parser MaxTime parseJSONList :: Value -> Parser [MaxTime] | |
ToJSON MaxTime Source # | |
Defined in Hasura.RQL.Types.ApiLimit toEncoding :: MaxTime -> Encoding toJSONList :: [MaxTime] -> Value toEncodingList :: [MaxTime] -> Encoding | |
ToTxt MaxTime Source # | Defers to the (illegal) DiffTime Show instance.
|
Defined in Hasura.RQL.Types.ApiLimit | |
type Rep MaxTime Source # | |
Defined in Hasura.RQL.Types.ApiLimit |