Skip to content

ronnyhartenstein/site-heartbeat-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Site Heartbeat

Checks for a bunch of domains their <title>.

Project for blog post Coding Kata: Site Heartbeat in Elixir and Golang.

Uses:

depends on Go 1.5

On Ubuntu 14.04 the standard is Go 1.2. To install Go 1.5 follow this instructions.

Install

go get github.com/PuerkitoBio/goquery
go get github.com/ronnyhartenstein/site-heartbeat-golang

Build

go build github.com/ronnyhartenstein/site-heartbeat-golang

Build for other target platform:

env GOOS=linux GOARCH=386 go build github.com/ronnyhartenstein/site-heartbeat-golang

Configs

hosts.txt: List of domains and their title (regexp) -> see hosts.txt.dist as template

mailer.conf: Mailer config to send the "Site down" mails (yet not configurable) -> see mailer.conf.dist as template

Run

./siteheartbeat

Disclaimer and Contribute

It's a prototype and hardly situated for my use case.

If you want to have more configurations, more mailer setups, more flags, I'm curious to see your PR :) So fork it and try your best. It's just Go.

About

Checks for a bunch of domains their correct <title>.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages