limits

package
v0.0.0-...-e8f2edf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// 5MB
	TELEMETRY_DATA_MIN_SIZE uint64 = 10
	TELEMETRY_DATA_MAX_SIZE uint64 = 5242880
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TelemetryDataLimits

type TelemetryDataLimits struct {
	MinSize uint64
	MaxSize uint64
}

func NewTelemetryDataLimits

func NewTelemetryDataLimits() *TelemetryDataLimits

func NewTelemetryDataLimits(data []byte) *TelemetryDataLimits {

func (*TelemetryDataLimits) CheckLimits

func (t *TelemetryDataLimits) CheckLimits(data []byte) error

CheckLimits checks the telemetry data limits

func (*TelemetryDataLimits) GetTelemetryDataLimits

func (t *TelemetryDataLimits) GetTelemetryDataLimits() TelemetryDataLimits

GetTelemetryDataLimits gets the current limits for the telemetry data.

func (*TelemetryDataLimits) Init

func (t *TelemetryDataLimits) Init(min uint64, max uint64)

Init initiates a new TelemetryDataLimits instance with preset limits

func (*TelemetryDataLimits) SetTelemetryDataLimits

func (t *TelemetryDataLimits) SetTelemetryDataLimits(minSize uint64, maxSize uint64)

SetTelemetryDataLimits sets the limits for the telemetry data.

Jump to

Keyboard shortcuts

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