throttler

package
v0.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryThrottler

type MemoryThrottler struct {
	BufferSize uint64 // 0 means turned-off
	// contains filtered or unexported fields
}

func NewMemoryThrottler

func NewMemoryThrottler(bufferSize uint64) *MemoryThrottler

func (*MemoryThrottler) AddInflight

func (t *MemoryThrottler) AddInflight(size uint64)

func (*MemoryThrottler) ExceededLimits

func (t *MemoryThrottler) ExceededLimits() bool

func (*MemoryThrottler) ReduceInflight

func (t *MemoryThrottler) ReduceInflight(size uint64)

Jump to

Keyboard shortcuts

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