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