amionline

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 11 Imported by: 0

README

amionline

GitHub release MIT License Go Report Card PRs Welcome

Check network connectivity and report via exit code

Install

Option 1: Binary

Download the latest release from https://github.com/jakewarren/amionline/releases/latest

Option 2: From source
go get github.com/jakewarren/amionline

Usage

Usage in a bash one-liner:

amionline -http && echo "connected" || echo "offline"
❯ amionline -h
Usage of amionline:
  -dns
    	check dns resolution
  -domain string
    	domain name to query (default "httpbin.org")
  -http
    	check url for 200 status code
  -verbose
    	verbose output
  -version
    	display version

Background

I created this utility for use in automated jobs that require internet connectivity to work; this program makes it easy to add connectivity checking to other programs.

Changes

All notable changes to this project will be documented in the changelog.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

License

MIT © 2018 Jake Warren

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL