An open API service indexing awesome lists of open source software.

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

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}