Skip to content

oaiiae/genki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

元気 Genki

Genki is a japanese word used when asking how well a person is.

This repository contains somewhat optimized yet simple helpers for creating healthcheck probes to use in Go HTTP handlers.

Usage example

func _() {
	db, err := sql.Open("postgres", "...")
	if err != nil {
		// ...
	}

	http.Handle("/healthz", genki.Checks{
		"db": db.PingContext,
	}.Handler(func(err error) { log.Print(err) }))
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages