Interface RateLimitsConfig

Hierarchy

  • RateLimitsConfig

Methods

  • FindRateLimitRule returns the first matching rule based on the provided labels.

    Optionally you can further specify a list of valid RateLimitRule.Audience values to further filter the matching rule (aka. the rule Audience will have to exist in one of the specified options).

    Parameters

    • searchLabels: string[]
    • Rest ...optOnlyAudience: string[]

    Returns [RateLimitRule, boolean]

  • MarshalJSON implements the [json.Marshaler] interface.

    Returns string | number[]

  • Validate makes RateLimitsConfig validatable by implementing [validation.Validatable] interface.

    Returns void

Properties

enabled: boolean
rules: RateLimitRule[]

Generated using TypeDoc