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.
Click to show internal directories.
Click to hide internal directories.