Skip to content
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 optional callback for readiness probe #46

Open
pmorie opened this issue Apr 23, 2018 · 0 comments
Open

Add optional callback for readiness probe #46

pmorie opened this issue Apr 23, 2018 · 0 comments

Comments

@pmorie
Copy link
Owner

pmorie commented Apr 23, 2018

You should be able to register a handler to /readiness by implementing an optional interface:

type HasReadinessCheck interface {
  func Readiness(w http.ResponseWriter, r http.Request)
}

If your BusinessLogic implements HasReadinessCheck, the server should automatically register /readiness with that handler.

@pmorie pmorie changed the title Add optional callback for liveness probe Add optional callback for readiness probe Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant