fast

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

package calculates average download/upload speeds using https://fast.com resource This package is an internal package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fast

type Fast struct {
	AvgDownload float64
	AvgUpload   float64
}

func (*Fast) Execute

func (f *Fast) Execute() error

Main function to calculate average speeds. Returns error if any error occures, otherwise saves average speed values to the Fast members. Part of common.Measure interface.

func (*Fast) GetAvgDownload

func (f *Fast) GetAvgDownload() float64

Getter for average download speed. Part of common.Measure interface.

func (*Fast) GetAvgUpload

func (f *Fast) GetAvgUpload() float64

Getter for average upload speed. Part of common.Measure interface.

Jump to

Keyboard shortcuts

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