Simple http client api for healthchecks.io
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
healthchecks.go
healthchecks_test.go
license First commit Jun 14, 2018
readme.md

readme.md

go-healthchecks Build Status GoDoc Go Report Card

Simple http client api for healthchecks.io

Installation

go get -u github.com/frozzare/go-healthchecks

Example

package main

import (
	"context"
	"log"

	"github.com/frozzare/go-healthchecks"
)

func main() {
	client := healthchecks.NewClient(nil)

	err := client.Success(context.Background(), "your-uuid-here")

	if err != nil {
		log.Fatal(err)
	}

	err = client.Fail(context.Background(), "your-uuid-here")

	if err != nil {
		log.Fatal(err)
	}
}

License

MIT © Fredrik Forsmo