timoth-y/kicksware-api

View on GitHub
services/search/api/REST/health.go

Summary

Maintainability
A
45 mins
Test Coverage
package rest

import (
    "net/http"
)

func (h *Handler) HealthZ(w http.ResponseWriter, r *http.Request) {
    w.WriteHeader(http.StatusOK)
}

func (h *Handler) ReadyZ(w http.ResponseWriter, r *http.Request) {
    w.WriteHeader(http.StatusOK) // TODO DB readiness check
}