Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Simple http client api for healthchecks.io

License

Notifications You must be signed in to change notification settings

deosrc/go-healthchecks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple http client api for healthchecks.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%