limits

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 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 CollapsingLevel

type CollapsingLevel = uint32
const (
	MaxCollapseLevel CollapsingLevel = 100
	NoCollapse       CollapsingLevel = MaxCollapseLevel + 10
)

type Limits

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

func NewLimits

func NewLimits(maxCapacity int, threshold int) (Limits, error)

func (Limits) GetCurrentCollapsingLevel

func (l Limits) GetCurrentCollapsingLevel(currentSize int) CollapsingLevel

func (Limits) Max

func (l Limits) Max() int

func (Limits) Threshold

func (l Limits) Threshold() int

Jump to

Keyboard shortcuts

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