ping-request

Expose an endpoint to ping a given host & tell whether it's up or not

ping-request

Expose an endpoint to ping a given host & tell whether it's up or not

Usage

Easily run using docker: docker run -p 8080:8080 -e TARGET_IP=127.0.0.1 matiasgarciaisaia/ping-request

You can alternatively run it locally, but you must ensure you have a compatible ping command that accepts -w for timeouts: TARGET_IP=127.0.0.1 crystal run src/ping-request.cr.

Or build & run: crystal build --release src/ping-request.cr && TARGET_IP=127.0.0.1 ./ping-request

Contributing

  1. Fork it (https://github.com/matiasgarciaisaia/ping-request/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

ping-request

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • over 6 years ago
  • August 14, 2018
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 07:37:17 GMT

Languages