22 lines
311 B
Go
22 lines
311 B
Go
package service
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type ReadinessService struct {
|
|
gin *gin.Engine
|
|
}
|
|
|
|
func NewReadinessService(gin *gin.Engine) *ReadinessService {
|
|
return &ReadinessService{
|
|
gin: gin,
|
|
}
|
|
}
|
|
|
|
func (i *ReadinessService) Ping(c *gin.Context) {
|
|
c.JSON(http.StatusOK, "pong")
|
|
}
|