Skip to content

Instantly share code, notes, and snippets.

@avence12
Created August 31, 2018 10:02
Show Gist options
  • Save avence12/fe43f2ccdaf7c060bae892b77b3b80a1 to your computer and use it in GitHub Desktop.
Save avence12/fe43f2ccdaf7c060bae892b77b3b80a1 to your computer and use it in GitHub Desktop.
package data
import (
"net/http"
"github.com/gin-gonic/gin"
)
// GetDataAPIHealthHandler GET /health-dataapi to expose heathy check result of data API
func GetDataAPIHealthHandler(c *gin.Context) {
// do something to check heathy of data API
c.JSON(http.StatusOK, gin.H{
"code": 0,
"message": "Data API is alive",
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment