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 ¶
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.
Click to show internal directories.
Click to hide internal directories.