Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParser ¶
func NewParser() parser.IngressAnnotation
NewParser creates a new ratelimit annotation parser
Types ¶
type RateLimit ¶
type RateLimit struct { // Connections indicates a limit with the number of connections per IP address Connections Zone `json:"connections"` // RPS indicates a limit with the number of connections per second RPS Zone `json:"rps"` }
RateLimit returns rate limit configuration for an Ingress rule limiting the number of connections per IP address and/or connections per second. If you both annotations are specified in a single Ingress rule, RPS limits takes precedence
Click to show internal directories.
Click to hide internal directories.