this project provide two different implementation of two net speed test services.
just you can run this command go run ./cmd/...
send request with Fast.com
:
curl --location --request GET http://localhost:6010/fastcom
send request with speedtest
:
curl --location --request GET http://localhost:6010/speedtest
response:
{"download":"10.787452 Mbps","upload":"0.000000 Mbps"}
it project have several part
run project contain main
function
provide HTTP server and routing system
structure providers just interface
in root project
contain new
file for make various provider.
it's one of the providers it made with external libraries. I add a extra interface in fastcom.go
for I can write test for my package fastcom
.
it's one of the providers it made with external libraries
code linted with Golangci_lint version v1.44.0