ratelimit

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeRateLimitConfig

func ComputeRateLimitConfig(rateLimit *gwpav1alpha1.L7RateLimit, defaultRateLimit *gwpav1alpha1.L7RateLimit) *gwpav1alpha1.L7RateLimit

ComputeRateLimitConfig computes the rate limit config based on the config and default config

func GetRateLimitIfGRPCRouteMatchesPolicy

func GetRateLimitIfGRPCRouteMatchesPolicy(routeMatch gwv1alpha2.GRPCRouteMatch, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit

GetRateLimitIfGRPCRouteMatchesPolicy returns the rate limit config if the GRPC route matches the policy

func GetRateLimitIfHTTPRouteMatchesPolicy

func GetRateLimitIfHTTPRouteMatchesPolicy(routeMatch gwv1beta1.HTTPRouteMatch, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit

GetRateLimitIfHTTPRouteMatchesPolicy returns the rate limit config if the HTTP route matches the policy

func GetRateLimitIfPortMatchesPolicy

func GetRateLimitIfPortMatchesPolicy(port gwv1beta1.PortNumber, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *int64

GetRateLimitIfPortMatchesPolicy returns true if the port matches the rate limit policy

func GetRateLimitIfRouteHostnameMatchesPolicy

func GetRateLimitIfRouteHostnameMatchesPolicy(routeHostname string, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit

GetRateLimitIfRouteHostnameMatchesPolicy returns the rate limit config if the route hostname matches the policy

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL