(c *gin.Context)
| 18 | } |
| 19 | |
| 20 | func (p *Http) GetHandle(c *gin.Context) { |
| 21 | select { |
| 22 | case message := <-p.ToSend: |
| 23 | common.SuccessResp(c, message) |
| 24 | default: |
| 25 | common.ErrorStrResp(c, "no message", 404) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func (p *Http) SendHandle(c *gin.Context) { |
| 30 | var req Req |
nothing calls this directly
no test coverage detected