Skip to content

jhaals/gohealthy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gohealthy

Build Status

goheatlhy is a library for registering HTTP health checks that can be verified by a load balancer or service discovery. A HTTP 500 error will be returned if one or more of the health checks are failing.

Example

type customerPortal struct{}

func (f customerPortal) GetHealth() gohealthy.HealthStatus {
 return gohealthy.HealthStatus{Name: "customer-satisfaction",
   Message: "Customer Satisfaction is above 180%",
   Healthy: true}
}

func main() {
 g := gohealthy.Init()
 g.Register(customerPortal{})
 g.RunServer(1337)
}

About

Library for registering HTTP health checks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages