Documentation ¶
Index ¶
- func NewRateLimitConfiguration(rlHttp *RateLimitConfiguration) (*anypb.Any, error)
- type CommonRouteConfigurationConfigurer
- type Headers
- type OnRateLimit
- type RateLimitConfiguration
- type ResetTagsHeaderConfigurer
- type RouteConfigurationConfigureFunc
- type RouteConfigurationConfigurer
- type RouteConfigurationMustConfigureFunc
- type TagsHeaderConfigurer
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 ¶
func (c CommonRouteConfigurationConfigurer) Configure(routeConfiguration *envoy_config_route_v3.RouteConfiguration) error
type OnRateLimit ¶
type RateLimitConfiguration ¶
type RateLimitConfiguration struct { Interval time.Duration Requests uint32 OnRateLimit *OnRateLimit }
type ResetTagsHeaderConfigurer ¶
type ResetTagsHeaderConfigurer struct{}
func (*ResetTagsHeaderConfigurer) Configure ¶
func (r *ResetTagsHeaderConfigurer) Configure(rc *envoy_config_route_v3.RouteConfiguration) error
type RouteConfigurationConfigureFunc ¶
type RouteConfigurationConfigureFunc func(rc *envoy_config_route_v3.RouteConfiguration) error
RouteConfigurationConfigureFunc adapts a configuration function to the RouteConfigurationConfigurer interface.
func (RouteConfigurationConfigureFunc) Configure ¶
func (f RouteConfigurationConfigureFunc) Configure(rc *envoy_config_route_v3.RouteConfiguration) error
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 ¶
func (f RouteConfigurationMustConfigureFunc) Configure(rc *envoy_config_route_v3.RouteConfiguration) error
type TagsHeaderConfigurer ¶
type TagsHeaderConfigurer struct {
Tags mesh_proto.MultiValueTagSet
}
func (*TagsHeaderConfigurer) Configure ¶
func (t *TagsHeaderConfigurer) Configure(rc *envoy_config_route_v3.RouteConfiguration) error
Click to show internal directories.
Click to hide internal directories.