package
0.6.0-rc5
Repository: https://github.com/threefoldtech/zos.git
Documentation: pkg.go.dev

# Functions

ExcludePrefix is a IPFilter function that filters IPs that start with prefix.
IPV4Only is an IPFilter function that filters out non IPv4 address.
Latency does a TCP dial to host and return the amount of time it took to get a response or an error if it fails to connect.
NewSorter create a new LatencySorter that will sort endpoints by latency you can controle the concurrency by tuning the worker value.

# Structs

Result is the struct return by the LatencySorter.
Sorter lets you get the latency from a list of endpoint and return an ascending sorted list of endpoint.

# Type aliases

IPFilter is function used by Sorted to filters out IP address during the latency test.