Skip to content

frozzare/go-healthchecks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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.Start(context.Background(), "your-uuid-here")
	if err != nil {
		log.Fatal(err)
	}

	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 for healthchecks.io

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages