Files
cybertron/internal/transport/handler/readiness.go
Varnit Goyal f75297880d TP-55555 | crud ingestor (#2)
* TP-55555 | crud ingestor

* TP-55555 | Project handler (#4)

---------

Co-authored-by: Lokesh Dugar <lokesh.dugar@navi.com>
2024-07-24 12:51:37 +05:30

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{}
}