site

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	Url         string
	Last_status Status
}

The Site struct encapsulates the details about the site being monitored.

func (Site) Status

func (s Site) Status() (Status, error)

Site.Status makes a GET request to a given URL and checks whether or not the resulting status code is 200.

type Status

type Status int
const (
	UNCHECKED Status = iota
	DOWN
	UP
)

Jump to

Keyboard shortcuts

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