MCPcopy
hub / github.com/segmentio/kafka-go / WriteMessages

Method WriteMessages

conn.go:1107–1109  ·  view source on GitHub ↗

WriteMessages writes a batch of messages to the connection's topic and partition, returning the number of bytes written. The write is an atomic operation, it either fully succeeds or fails.

(msgs ...Message)

Source from the content-addressed store, hash-verified

1105// partition, returning the number of bytes written. The write is an atomic
1106// operation, it either fully succeeds or fails.
1107func (c *Conn) WriteMessages(msgs ...Message) (int, error) {
1108 return c.WriteCompressedMessages(nil, msgs...)
1109}
1110
1111// WriteCompressedMessages writes a batch of messages to the connection's topic
1112// and partition, returning the number of bytes written. The write is an atomic

Callers 15

prepareReaderFunction · 0.95
BenchmarkConnFunction · 0.45
BenchmarkReaderFunction · 0.45
produceRecordsFunction · 0.45
TestClientListGroupsFunction · 0.45
TestClientDescribeGroupsFunction · 0.45
testWriterRoundRobin1Function · 0.45

Calls 1

Tested by 15

prepareReaderFunction · 0.76
BenchmarkConnFunction · 0.36
BenchmarkReaderFunction · 0.36
produceRecordsFunction · 0.36
TestClientListGroupsFunction · 0.36
TestClientDescribeGroupsFunction · 0.36
testWriterRoundRobin1Function · 0.36