fast

package module
v0.0.0-...-9deface Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 12 Imported by: 0

README

go-fast

This is the modified version of ddo/go-fast, used specifically in my unsucessful attempt at creating a location aware speed tester

This version is basically this unmerged pull request

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fast

type Fast struct {
	// contains filtered or unexported fields
}

Fast contains client config

func New

func New() *Fast

New creates empty Fast instance with a http client

func (*Fast) GetUrls

func (f *Fast) GetUrls() (urls []string, err error)

GetUrls gets the testing urls call after #Init recall if 403 err from download

func (*Fast) Init

func (f *Fast) Init() (err error)

Init inits token and url

func (*Fast) Measure

func (f *Fast) Measure(urls []string, KbpsChan chan<- float64) (err error)

Measure measures download speeds from given urls

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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