dataplane

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PolicyModule

func PolicyModule() fx.Option

PolicyModule returns the fx options for dataplane side pieces of policy.

func ProvideEngineAPI

func ProvideEngineAPI() iface.Engine

ProvideEngineAPI Main fx app.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine APIs to (1) Get schedulers given a service, control point and set of labels (2) Get flux meter histogram given a metric id.

func (*Engine) GetFluxMeter added in v0.1.3

func (e *Engine) GetFluxMeter(fluxMeterName string) iface.FluxMeter

GetFluxMeter Lookup function for getting flux meter.

func (*Engine) ProcessRequest

func (e *Engine) ProcessRequest(controlPoint selectors.ControlPoint, serviceIDs []services.ServiceID, labels selectors.Labels) (response *flowcontrolv1.CheckResponse)

ProcessRequest .

func (*Engine) RegisterClassifier added in v0.1.2

func (e *Engine) RegisterClassifier(c iface.Classifier) error

RegisterClassifier adds classifier to multimatcher.

func (*Engine) RegisterConcurrencyLimiter

func (e *Engine) RegisterConcurrencyLimiter(cl iface.Limiter) error

RegisterConcurrencyLimiter adds concurrency limiter to multimatcher.

func (*Engine) RegisterFluxMeter

func (e *Engine) RegisterFluxMeter(fm iface.FluxMeter) error

RegisterFluxMeter adds fluxmeter to histogram map and multimatcher.

func (*Engine) RegisterRateLimiter

func (e *Engine) RegisterRateLimiter(rl iface.RateLimiter) error

RegisterRateLimiter adds limiter actuator to multimatcher.

func (*Engine) UnregisterClassifier added in v0.1.2

func (e *Engine) UnregisterClassifier(c iface.Classifier) error

UnregisterClassifier removes classifier from multimatcher.

func (*Engine) UnregisterConcurrencyLimiter

func (e *Engine) UnregisterConcurrencyLimiter(cl iface.Limiter) error

UnregisterConcurrencyLimiter removes concurrency limiter from multimatcher.

func (*Engine) UnregisterFluxMeter

func (e *Engine) UnregisterFluxMeter(fm iface.FluxMeter) error

UnregisterFluxMeter removes fluxmeter from histogram map and multimatcher.

func (*Engine) UnregisterRateLimiter

func (e *Engine) UnregisterRateLimiter(rl iface.RateLimiter) error

UnregisterRateLimiter removes limiter actuator from multimatcher.

Jump to

Keyboard shortcuts

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