A service to monitor registered endpoints by sending 10 request in a constant time steps. Updating the status code of each url, http monitor service logs an alert if the number of errors reache the given threshold.
After downloding the project, navigate to http-monitor directory
$ cd cmd/http-monitor
$ go build
$ ./http-monitor server
$ ./http-monitor worker
$ curl -X POST http://localhost:21345/register -H 'Content-Type: application/json' -d '{"name":"you_username","password":"your_password"}'
$ curl -X POST http://localhost:21345/login -H 'Content-Type: application/json' -d '{"name":"you_username","password":"your_password"}'
$ curl -X POST http://localhost:21345/request -H 'Content-Type: application/json' -Token 'your token' -d '{"url":"you_url","threshold":"your_threshold"}'
$ curl -X GET http://localhost:21345/result -H 'Content-Type: application/json' -Token 'your token'
$ curl -X POST http://localhost:21345/result/url -H 'Content-Type: application/json' -Token 'your token' -d '{"url":"you_url"}'
$ curl -X GET http://localhost:21345/login -H 'Content-Type: application/json' -Token 'your token'