ratelimit

package
v1.10.40 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExtensionName      = "rate_limit"
	EnvoyExtensionName = "envoy-rate-limit"
	CustomDomain       = "custom"

	CustomStage = 1
)
View Source
const SetDescriptorValue = "solo.setDescriptor.uniqueValue"

special value for generic keys that signals the enterprise rate limit server to treat those descriptors differently (for the set-style rate-limit API)

Variables

View Source
var (
	DefaultTimeout = prototime.DurationToProto(100 * time.Millisecond)
)

Functions

func ConvertActions

func ConvertActions(ctx context.Context, actions []*solo_rl.Action) []*envoy_config_route_v3.RateLimit_Action

func DetermineFilterStage added in v0.21.1

func DetermineFilterStage(rateLimitBeforeAuth bool) plugins.FilterStage

figure out what stage the rate limit plugin should run in given some configuration

func GenerateEnvoyConfigForFilterWith

func GenerateEnvoyConfigForFilterWith(
	upstreamRef *core.ResourceRef,
	domain string,
	currentState uint32,
	timeout *duration.Duration,
	denyOnFail bool,
) *envoyratelimit.RateLimit

func NewPlugin

func NewPlugin() *plugin

Types

This section is empty.

Jump to

Keyboard shortcuts

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