Skip to content

Commit

Permalink
remove algorithm definition
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo committed May 16, 2024
1 parent 45bf757 commit 2658ace
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/function/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ export type { Context } from '@netlify/serverless-functions-api'
type Path = `/${string}`
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
type CronSchedule = string
type RateLimitAlgorithm = 'sliding_window'
type RateLimitAggregator = 'domain' | 'ip'
type RateLimitAction = 'rate_limit' | 'rewrite'

interface RateLimitConfig {
action?: RateLimitAction
aggregateBy?: RateLimitAggregator | RateLimitAggregator[]
algorithm?: RateLimitAlgorithm
to?: string
windowSize: number
}
Expand Down

0 comments on commit 2658ace

Please sign in to comment.