package
Version:
v0.5.5
Opens a new window with list of versions in this module.
Published: Feb 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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
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
NewSorter create a new LatencySorter that will sort endpoints by latency
you can controle the concurrency by tuning the worker value
Run concurrently checks the latency of all the endpoint contained in l
Source Files
¶
Click to show internal directories.
Click to hide internal directories.