speedtest

package
v0.0.0-...-e48efbf Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package speedtest The package implements the function of testing the network speed from the client to the server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeBufferLimit

func ChangeBufferLimit(limit int)

ChangeBufferLimit Change data limit for testing download speed

limit: data unit MB, default 50MB

func ChangeCrossOrigin

func ChangeCrossOrigin(origin string)

ChangeCrossOrigin Change the cross-domain restriction in the response header

origin: default *

func DownloadHandler

func DownloadHandler(w http.ResponseWriter, r *http.Request)

DownloadHandler Test data download speed

func PingHandler

func PingHandler(w http.ResponseWriter, r *http.Request)

PingHandler Test network latency

func UploadHandler

func UploadHandler(w http.ResponseWriter, r *http.Request)

UploadHandler Test data upload speed

Types

This section is empty.

Jump to

Keyboard shortcuts

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