(c *gin.Context)
| 102 | } |
| 103 | |
| 104 | func userOAuthAPICallback(c *gin.Context) { |
| 105 | res, status, err := handleUserOAuthCallback(c) |
| 106 | if err != nil { |
| 107 | if status == 0 { |
| 108 | status = http.StatusInternalServerError |
| 109 | } |
| 110 | |
| 111 | // response using json |
| 112 | abortWithError(c, status, err) |
| 113 | } else { |
| 114 | if status == 0 { |
| 115 | status = http.StatusOK |
| 116 | } |
| 117 | |
| 118 | responseWithData(c, status, res) |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | func handleUserOAuthCallback(c *gin.Context) (res gin.H, status int, err error) { |
| 123 | r := struct { |
nothing calls this directly
no test coverage detected