go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
690 stars 33 forks source link

Add pluggable component for health check feature #254

Open jeevatkm opened 5 years ago

jeevatkm commented 5 years ago

The goal is to create a pluggable component for health check feature in aah.

Goals:

Design:

Sample response payload (a conceptual idea, yet to be finalized)

{
    "status": "OK", // OK or Service Unavailable
    "timestamp": "RFC3339 or ISO 8061", // yet to be decided
    "reportname": bool, // true or false, this line will be repeated for all registered health checker/reporter
}
jeevatkm commented 5 years ago

@adrianlop welcome 😄

adrianlop commented 5 years ago

I just pushed a basic PR here: https://github.com/go-aah/ec-healthcheck-provider/pull/1/files

let's discuss and review in there if you like! cheers @jeevatkm

jeevatkm commented 5 years ago

@adrianlop I have added Go vanity for aahframe.work/ec/health so available to use for try/test https://godoc.org/aahframe.work/ec/health

Until official release, please do go get aahframe.work/ec/health@master in your application to test/use it will update your go.mod with latest version of library every time you run it.