flowcontrol

package
v0.0.0-...-43b7830 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestIDTooOld = errors.New("RequestIDTooOld")
)

Functions

func ResizeGlobalFlowControl

func ResizeGlobalFlowControl(fc GlobalFlowControl, schema proxyv1alpha1.FlowControlSchema, upstream string)

Types

type GlobalFlowControl

type GlobalFlowControl interface {
	TryAcquireN(instance string, token int32) bool
	SetState(instance string, requestId int64, current int32) (int32, error)
	String() string
	Resize(n int32, burst int32) bool
	Type() proxyv1alpha1.FlowControlSchemaType
}

Jump to

Keyboard shortcuts

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