(c *gin.Context)
| 74 | } |
| 75 | |
| 76 | func PingData(c *gin.Context) error { |
| 77 | c.Writer.Write([]byte(": PING\n\n")) |
| 78 | if flusher, ok := c.Writer.(http.Flusher); ok { |
| 79 | flusher.Flush() |
| 80 | } else { |
| 81 | return errors.New("streaming error: flusher not found") |
| 82 | } |
| 83 | return nil |
| 84 | } |
| 85 | |
| 86 | func ObjectData(c *gin.Context, object interface{}) error { |
| 87 | if object == nil { |
no outgoing calls
no test coverage detected