worldping

package
v0.0.0-...-bb60f61 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package worldping is used to perform a ping test for world-wide servers. It uses the debian FTP server mirrors to perform ping tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, privileged bool) (map[Server]time.Duration, error)

Run a test for all available world ping servers. Returns a map of the average RTT keyed by the lat-long value of the location.

Types

type Server

type Server struct {
	Name string
	Code string
}

The Server type describes a server that can be pinged at a certain location.

func (Server) URL

func (s Server) URL() string

URL returns the pingable URL of the server.

Jump to

Keyboard shortcuts

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