rtt

package
v0.0.0-...-16f22ad Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMeasurementKey

func MakeMeasurementKey(node *protocol.Node) string

Types

type Recorder

type Recorder interface {
	Snapshot(key string, past time.Duration) *Statistics
	RecordLatency(key string, latency float64)
	RecordSent(key string)
	RecordLost(key string)
	Drop(key string)
}

type Statistics

type Statistics struct {
	Since             time.Time     `json:"since"`
	Until             time.Time     `json:"until"`
	Min               time.Duration `json:"min"`
	Average           time.Duration `json:"average"`
	Max               time.Duration `json:"max"`
	StandardDeviation time.Duration `json:"mdev"`
	Sent              uint64        `json:"sent"`
	Lost              uint64        `json:"lost"`
}

func (*Statistics) String

func (s *Statistics) String() string

Jump to

Keyboard shortcuts

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