twamp

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector() collector.RPCCollector

NewCollector creates a new collector

Types

type GenericAggregateMeasurement

type GenericAggregateMeasurement struct {
	MeasurementType    string `xml:"measurement-type"`
	MeasurementSamples int64  `xml:"measurement-samples"`
	MeasurementMin     int64  `xml:"measurement-min"`
	MeasurementMax     int64  `xml:"measurement-max"`
	MeasurementAvg     int64  `xml:"measurement-avg"`
	MeasurementStddev  int64  `xml:"measurement-stddev"`
}

GenericAggregateMeasurement holds specific measurement statistics

type GenericAggregateResults

type GenericAggregateResults struct {
	AggregateType               string                        `xml:"aggregate-type"`
	NumSamplesTx                int64                         `xml:"num-samples-tx"`
	NumSamplesRx                int64                         `xml:"num-samples-rx"`
	LossPercentage              float64                       `xml:"loss-percentage"`
	GenericAggregateMeasurement []GenericAggregateMeasurement `xml:"generic-aggregate-measurement"` // Slice for multiple measurements
}

GenericAggregateResults holds aggregated data for different periods

type GenericSampleResults

type GenericSampleResults struct {
	SampleStatus  string `xml:"sample-status"`
	SampleTxTime  string `xml:"sample-tx-time"` // Consider using time.Time with custom unmarshalling if needed
	SampleRxTime  string `xml:"sample-rx-time"` // Consider using time.Time with custom unmarshalling if needed
	OffloadStatus string `xml:"offload-status"`
	RTT           int64  `xml:"rtt"`
	RTTJitter     int64  `xml:"rtt-jitter"`
}

GenericSampleResults holds individual sample data

Jump to

Keyboard shortcuts

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