Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davemolk/downdetector
Use downDetector to quickly check the status of a site (or sites).
https://github.com/davemolk/downdetector
go golang
Last synced: about 1 month ago
JSON representation
Use downDetector to quickly check the status of a site (or sites).
- Host: GitHub
- URL: https://github.com/davemolk/downdetector
- Owner: davemolk
- License: mit
- Created: 2022-05-19T12:34:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T21:55:41.000Z (over 2 years ago)
- Last Synced: 2023-03-06T00:12:48.400Z (almost 2 years ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# downDetector
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)
[![Go Report Card](https://goreportcard.com/badge/github.com/davemolk/goScanner)](https://goreportcard.com/report/github.com/davemolk/goScanner)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/davemolk/downDetector/issues)Use downDetector to quickly check the status of a site (or sites).
![downDetector](downDetector.gif)
## Overview
* A non-200 Status Code counts as a site being down.
* Use the url ("-u") flag to scan a single url.
* Use the input ("-i") flag to scan multiple urls concurrently. Include just one url per line in your txt file.
* downDetector makes 3 GET requests per url by default. Adjust this with the attempts flag ("-a). Be responsible.
* Set the timeout in seconds with the timeout flag ("-t").
* downDetector supports terminal commands.## Example Usages
Single URL:
```
go run main.go -u=https://go.dev
```
```
echo https://go.dev | downDetector
```
Multiple URLs:
```
go run main.go -i=myURLs.txt
```
```
cat myURLs.txt
```
## Support
* Like downDetector? Use it, star it, and share with your friends!
- Let me know what you're up to so I can feature your work here.
* Want to see a particular feature? Found a bug? Question about usage or documentation?
- Please raise an issue.
* Pull request?
- Please discuss in an issue first.## License
* downDetector is released under the MIT license. See [LICENSE](LICENSE) for details.