latency

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package latency contains logic for egress traffic from each device.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latencies

type Latencies []Latency

func (Latencies) RenderTable

func (l Latencies) RenderTable(wr io.Writer)

type Latency

type Latency struct {
	// Defines the edge server provider type (e.g., tailscale DERP).
	Provider string `json:"provider"`

	// Region name of the edge server.
	RegionName string `json:"region_name"`

	// The region code of the edge server.
	// e.g., Named "us-east-1" to be consistent with other cloud providers.
	RegionCode string `json:"region_code"`

	// Latency of the edge server.
	// It is a time that the request takes to be sent to the edge server and back.
	Latency metav1.Duration `json:"latency"`

	// Latency converted to milliseconds.
	LatencyMilliseconds int64 `json:"latency_milliseconds"`
}

Latency measures the time it takes for a request to be sent to an edge server and back. It measures the egress latency from the perspective of the local device.

Directories

Path Synopsis
Package edge provides a client for the Tailscale DERP (Designated Edge Router Protocol) service.
Package edge provides a client for the Tailscale DERP (Designated Edge Router Protocol) service.
derpmap
Package derpmap provides the tailscale derp map implementation.
Package derpmap provides the tailscale derp map implementation.
derpmap/sync
"sync" syncs the tailscale derp map.
"sync" syncs the tailscale derp map.

Jump to

Keyboard shortcuts

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