latency

package
v0.0.0-...-5012d17 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

latency offers functions to sort a list of gateways (or in the future, bridges) by latency from the client's point of view.

This will not be exposed in the mainstream clients yet, since we're unsure how the manual override will interact with the automated gateway selection, and a mass-deployment of the load balancer is still not in sight.

That said, it can be useful to allow advanced users to easily check by themselves if the gateways suggested by menshen are indeed what they can reach with a lesser latency.

The android and desktop clients can also try to schedule periodic measurements whenever they're in an OFF state. We need to make sure to pass them only non-overloaded gateways.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PickBestEndpointByLatency

func PickBestEndpointByLatency(endpoints []string) string

PickBestEndpointByLatency will send a brief ICMP ping train to all the passed endpoints, and return the one with the lesser latency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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