Created
August 31, 2018 10:02
-
-
Save avence12/fe43f2ccdaf7c060bae892b77b3b80a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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