Shopify.GraphQL.Limiter (shopify_graphql v2.1.0)
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Returns true
if requests are currently being throttled due to rate limiting.
Otherwise, returns false
.
Link to this section Types
Link to this type
name_t()
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
send(limiter, request, config)
@spec send(name_t(), Shopify.GraphQL.Request.t(), Shopify.GraphQL.Config.t()) :: Shopify.GraphQL.http_response_t()
Link to this function
start_link(opts)
@spec start_link(Keyword.t()) :: Supervisor.on_start()
Link to this function
start_partition(limiter, config)
@spec start_partition(name_t(), Shopify.GraphQL.Config.t()) :: {:ok, pid()} | {:error, term()}
Link to this function
throttled?(limiter, config)
Returns true
if requests are currently being throttled due to rate limiting.
Otherwise, returns false
.