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) Closest ¶
Returns the closest latency from the list of latencies, meaning the latency region with the smallest latency in milliseconds from the local device.
func (Latencies) RenderTable ¶
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
command
"sync" syncs the tailscale derp map.
|
"sync" syncs the tailscale derp map. |
Click to show internal directories.
Click to hide internal directories.