* TP-55555 | crud ingestor * TP-55555 | Project handler (#4) --------- Co-authored-by: Lokesh Dugar <lokesh.dugar@navi.com>
21 lines
302 B
Go
21 lines
302 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type HealthCheckHandler struct {
|
|
}
|
|
|
|
func (h *HealthCheckHandler) Readiness(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"message": "pong",
|
|
})
|
|
}
|
|
|
|
func NewReadinessHandler() *HealthCheckHandler {
|
|
return &HealthCheckHandler{}
|
|
}
|