flowcontrol

package
v0.0.0-...-a6c227c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 9 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) (accept bool, latest int32, err error)
	String() string
	Resize(n int32, burst int32) bool
	Type() proxyv1alpha1.FlowControlSchemaType
	DebugInfo() string
}

Jump to

Keyboard shortcuts

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