MCPcopy
hub / github.com/IBM/sarama / prodMsg2Str

Function prodMsg2Str

functional_consumer_test.go:493–495  ·  view source on GitHub ↗
(prodMsg *ProducerMessage)

Source from the content-addressed store, hash-verified

491}
492
493func prodMsg2Str(prodMsg *ProducerMessage) string {
494 return fmt.Sprintf("{offset: %d, value: %s}", prodMsg.Offset, string(prodMsg.Value.(StringEncoder)))
495}
496
497func consMsg2Str(consMsg *ConsumerMessage) string {
498 return fmt.Sprintf("{offset: %d, value: %s}", consMsg.Offset, string(consMsg.Value))

Callers 1

consumeMsgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected