ratelimits

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildExternalServiceRateLimitMapForZoneEgress added in v1.8.1

func BuildExternalServiceRateLimitMapForZoneEgress(
	externalServices []*core_mesh.ExternalServiceResource,
	rateLimits []*core_mesh.RateLimitResource,
) core_xds.ExternalServiceRateLimitMap

func BuildRateLimitMap added in v1.8.1

func BuildRateLimitMap(
	dataplane *core_mesh.DataplaneResource,
	inbounds []*mesh_proto.Dataplane_Networking_Inbound,
	rateLimits []*core_mesh.RateLimitResource,
) core_xds.RateLimitsMap

Types

type RateLimitMatcher

type RateLimitMatcher struct {
	ResourceManager manager.ReadOnlyResourceManager
}

func (*RateLimitMatcher) Match

func (m *RateLimitMatcher) Match(ctx context.Context, dataplane *core_mesh.DataplaneResource, mesh *core_mesh.MeshResource) (core_xds.RateLimitsMap, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳