MCPcopy Create free account
hub / github.com/LockGit/gochat / FailWithMsg

Function FailWithMsg

tools/response.go:31–33  ·  view source on GitHub ↗
(c *gin.Context, msg interface{})

Source from the content-addressed store, hash-verified

29}
30
31func FailWithMsg(c *gin.Context, msg interface{}) {
32 ResponseWithCode(c, CodeFail, msg, nil)
33}
34
35func ResponseWithCode(c *gin.Context, msgCode int, msg interface{}, data interface{}) {
36 if msg == nil {

Callers 9

RegisterFunction · 0.92
PushFunction · 0.92
PushRoomFunction · 0.92
CountFunction · 0.92
GetRoomInfoFunction · 0.92
LoginFunction · 0.92
RegisterFunction · 0.92
CheckAuthFunction · 0.92
LogoutFunction · 0.92

Calls 1

ResponseWithCodeFunction · 0.85

Tested by

no test coverage detected