MCPcopy
hub / github.com/keploy/keploy / isCompositeMessage

Function isCompositeMessage

pkg/agent/proxy/integrations/mysql/wire/encode.go:180–189  ·  view source on GitHub ↗

isCompositeMessage tells whether the encoded `data` contains multiple packets, where only the first packet should use the header we write here.

(msg interface{})

Source from the content-addressed store, hash-verified

178// isCompositeMessage tells whether the encoded `data` contains multiple packets,
179// where only the first packet should use the header we write here.
180func isCompositeMessage(msg interface{}) bool {
181 switch msg.(type) {
182 case *mysql.TextResultSet,
183 *mysql.BinaryProtocolResultSet,
184 *mysql.StmtPrepareOkPacket:
185 return true
186 default:
187 return false
188 }
189}

Callers 1

EncodeToBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected