Skip to content
/ statoo Public

`statoo` is a super simple http GET tool for checking site health

License

Notifications You must be signed in to change notification settings

vigo/statoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version Go Documentation Go Report Card Build Status

Statoo

A super basic http tool that makes only GET request to given URL and returns status code of the response. Well, if you are curl or http (httpie) user, you can make the same kind of request and get a kind-of same response since statoo is way better simple :)

Install

$ go get -u github.com/vigo/statoo

Usage:

$ statoo -h

usage: statoo [-flags] URL

  flags:

  -version        display version information (0.0.0)
  -t, -timeout    default timeout in seconds  (default: 10)
  -h, -help       display help
  -verbose        verbose output              (default: false)

  examples:
  
  $ statoo "https://ugur.ozyilmazel.com"
  $ statoo -timeout 30 "https://ugur.ozyilmazel.com"

Let’s try:

$ statoo "https://ugur.ozyilmazel.com"
200

$ statoo -verbose "https://ugur.ozyilmazel.com"
https://ugur.ozyilmazel.com -> 200

or;

$ statoo -json http://vigo.io

response;

{
  "url": "http://vigo.io",
  "status": 200,
  "checked_at": "2020-09-18T04:56:14.664255Z"
}

It’s better to pipe -json output to jq for pretty print :)

That’s it!

Contributer(s)


Contribute

All PR’s are welcome!

  1. fork (https://github.com/vigo/statoo/fork)
  2. Create your branch (git checkout -b my-feature)
  3. commit yours (git commit -am 'add some functionality')
  4. push your branch (git push origin my-feature)
  5. Than create a new Pull Request!

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.


License

This project is licensed under MIT