MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / PingData

Function PingData

relay/helper/common.go:76–84  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

74}
75
76func 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
86func ObjectData(c *gin.Context, object interface{}) error {
87 if object == nil {

Callers 2

sendPingDataFunction · 0.92
StreamScannerHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected