-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pluggable component for health check feature #254
Comments
@adrianlop welcome 😄 |
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! |
@adrianlop I have added Go vanity for Until official release, please do |
The goal is to create a pluggable component for health check feature in aah.
Goals:
Design:
aahframe.work/ec/healthcheck
- yet to be doneinterface
for implementing health check reporterfunc Check() error
hc.AddReporter(healthcheck.Config{/* report name, implementation based on above interface, duration, skip on error, etc... */})
200 OK
if every registered health checker/reporter returnsnil
503 Service Unavailable
if any registered checker/reporter returnnon-nil
except skip on errorSample response payload (a conceptual idea, yet to be finalized)
The text was updated successfully, but these errors were encountered: