v3

package
v0.0.0-...-8975490 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRateLimitConfiguration

func NewRateLimitConfiguration(rlHttp *RateLimitConfiguration) (*anypb.Any, error)

Types

type CommonRouteConfigurationConfigurer

type CommonRouteConfigurationConfigurer struct{}

func (CommonRouteConfigurationConfigurer) Configure

type Headers

type Headers struct {
	Key    string
	Value  string
	Append bool
}

type OnRateLimit

type OnRateLimit struct {
	Status  uint32
	Headers []*Headers
}

type RateLimitConfiguration

type RateLimitConfiguration struct {
	Interval    time.Duration
	Requests    uint32
	OnRateLimit *OnRateLimit
}

type ResetTagsHeaderConfigurer

type ResetTagsHeaderConfigurer struct{}

func (*ResetTagsHeaderConfigurer) Configure

type RouteConfigurationConfigureFunc

type RouteConfigurationConfigureFunc func(rc *envoy_config_route_v3.RouteConfiguration) error

RouteConfigurationConfigureFunc adapts a configuration function to the RouteConfigurationConfigurer interface.

func (RouteConfigurationConfigureFunc) Configure

type RouteConfigurationConfigurer

type RouteConfigurationConfigurer interface {
	// Configure configures a single aspect on a given Envoy RouteConfiguration.
	Configure(routeConfiguration *envoy_config_route_v3.RouteConfiguration) error
}

RouteConfigurationConfigurer is responsible for configuring a single aspect of the entire Envoy RouteConfiguration, such as VirtualHost, HTTP headers to add or remove, etc.

type RouteConfigurationMustConfigureFunc

type RouteConfigurationMustConfigureFunc func(rc *envoy_config_route_v3.RouteConfiguration)

RouteConfigurationMustConfigureFunc adapts a configuration function that never fails to the RouteConfigurationConfigurer interface.

func (RouteConfigurationMustConfigureFunc) Configure

type TagsHeaderConfigurer

type TagsHeaderConfigurer struct {
	Tags mesh_proto.MultiValueTagSet
}

func (*TagsHeaderConfigurer) Configure

Jump to

Keyboard shortcuts

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