MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / responseWithData

Function responseWithData

cmd/cql-proxy/api/utils.go:46–52  ·  view source on GitHub ↗
(c *gin.Context, code int, data interface{})

Source from the content-addressed store, hash-verified

44}
45
46func responseWithData(c *gin.Context, code int, data interface{}) {
47 c.JSON(code, gin.H{
48 "success": true,
49 "msg": "",
50 "data": data,
51 })
52}
53
54func getSession(c *gin.Context) *model.Session {
55 return c.MustGet("session").(*model.Session)

Callers 15

applyTokenFunction · 0.85
showAllAccountsFunction · 0.85
getBalanceFunction · 0.85
setMainAccountFunction · 0.85
userOAuthCallbackFunction · 0.85
userOAuthAPICallbackFunction · 0.85
getUserInfoFunction · 0.85
userAuthLogoutFunction · 0.85
genKeyPairFunction · 0.85
uploadKeyPairFunction · 0.85
deleteKeyPairFunction · 0.85
downloadKeyPairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected