https://github.com/mataperezluis/fastestmirror
find the fastest mirror using golang
https://github.com/mataperezluis/fastestmirror
golang golang-app-server rest-api
Last synced: 4 months ago
JSON representation
find the fastest mirror using golang
- Host: GitHub
- URL: https://github.com/mataperezluis/fastestmirror
- Owner: mataperezluis
- Created: 2020-10-06T12:18:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-06T13:14:19.000Z (over 5 years ago)
- Last Synced: 2025-12-18T02:47:40.292Z (6 months ago)
- Topics: golang, golang-app-server, rest-api
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fastestMirror
returns the fastest mirror from a list
go get github.com/mataperezluis/fastestMirror
go install github.com/mataperezluis/fastestMirror/mirrorFinder
run:
$GOPATH/bin/mirrorFinder
## Valid request
curl -i -X GET "http://localhost:8000/fastest-mirror"
The response is as follows:
HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 27 Mar 2019 23:13:42 GMT
Content-Length: 64
{"fastest_url":"http://ftp.sk.debian.org/debian/","latency":230}