validops-east-1's picture
restructure repo into production layout; add whatsapp-service, tests, ddl, docs, scripts; scrub hardcoded secrets
83d6851
Raw
History Blame Contribute Delete
357 Bytes
package server_handler
import "github.com/gin-gonic/gin"
type ServerHandler interface {
ServerOk(ctx *gin.Context)
}
type serverHandler struct {
}
// ServerOk implements ServerHandler.
func (s *serverHandler) ServerOk(ctx *gin.Context) {
ctx.JSON(200, gin.H{
"status": "ok",
})
}
func NewServerHandler() ServerHandler {
return &serverHandler{}
}