| 1234567891011121314151617181920212223 |
- package healthcheck
- import (
- "net/http"
- "github.com/porter-dev/porter/provisioner/server/config"
- )
- type LivezHandler struct {
- Config *config.Config
- }
- func NewLivezHandler(
- config *config.Config,
- ) *LivezHandler {
- return &LivezHandler{
- Config: config,
- }
- }
- func (c *LivezHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- writeHealthy(w)
- }
|