livez.go 362 B

1234567891011121314151617181920212223
  1. package healthcheck
  2. import (
  3. "net/http"
  4. "github.com/porter-dev/porter/provisioner/server/config"
  5. )
  6. type LivezHandler struct {
  7. Config *config.Config
  8. }
  9. func NewLivezHandler(
  10. config *config.Config,
  11. ) *LivezHandler {
  12. return &LivezHandler{
  13. Config: config,
  14. }
  15. }
  16. func (c *LivezHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
  17. writeHealthy(w)
  18. }