Module

Yoga.Fastify.Plugin.RateLimit

Package
purescript-yoga-fastify
Repository
rowtype-yoga/purescript-yoga-fastify

#rateLimit Source

rateLimit :: forall opts opts_. Union opts opts_ RateLimitOptionsImpl => Record opts -> Fastify -> Aff Unit

#RateLimitOptionsImpl Source

type RateLimitOptionsImpl :: Row Typetype RateLimitOptionsImpl = (allowList :: Array String, ban :: Int, cache :: Int, global :: Boolean, hook :: String, max :: Int, nameSpace :: String, timeWindow :: Foreign)

#RouteRateLimitImpl Source

type RouteRateLimitImpl :: Row Typetype RouteRateLimitImpl = (allowList :: Array String, ban :: Int, max :: Int, timeWindow :: Foreign)

#RouteRateLimit Source

#routeRateLimit Source

routeRateLimit :: forall opts opts_. Union opts opts_ RouteRateLimitImpl => Record opts -> RouteRateLimit

#timeWindowMs Source

#timeWindowStr Source