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

Function newDefaultRecords

records.go:24–26  ·  view source on GitHub ↗
(batch *RecordBatch)

Source from the content-addressed store, hash-verified

22}
23
24func newDefaultRecords(batch *RecordBatch) Records {
25 return Records{recordsType: defaultRecords, RecordBatch: batch}
26}
27
28// setTypeFromFields sets type of Records depending on which of MsgSet or RecordBatch is not nil.
29// The first return value indicates whether both fields are nil (and the type is not set).

Callers 7

addMethod · 0.85
AddBatchMethod · 0.85
TestDefaultRecordsFunction · 0.85
SetLastOffsetDeltaMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestDefaultRecordsFunction · 0.68