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

Method readFrom

joingroup.go:216–227  ·  view source on GitHub ↗
(r *bufio.Reader, size int)

Source from the content-addressed store, hash-verified

214}
215
216func (t *groupMetadata) readFrom(r *bufio.Reader, size int) (remain int, err error) {
217 if remain, err = readInt16(r, size, &t.Version); err != nil {
218 return
219 }
220 if remain, err = readStringArray(r, remain, &t.Topics); err != nil {
221 return
222 }
223 if remain, err = readBytes(r, remain, &t.UserData); err != nil {
224 return
225 }
226 return
227}
228
229type joinGroupRequestGroupProtocolV1 struct {
230 ProtocolName string

Callers 15

TestSaramaCompatibilityFunction · 0.45
TestMemberMetadataFunction · 0.45
TestJoinGroupResponseFunction · 0.45
TestCreateTopicsResponseFunction · 0.45
findCoordinatorMethod · 0.45
heartbeatMethod · 0.45
joinGroupMethod · 0.45

Calls 3

readStringArrayFunction · 0.85
readBytesFunction · 0.85
readInt16Function · 0.70

Tested by 15

TestSaramaCompatibilityFunction · 0.36
TestMemberMetadataFunction · 0.36
TestJoinGroupResponseFunction · 0.36
TestCreateTopicsResponseFunction · 0.36
TestListGroupsResponseV1Function · 0.36
TestLeaveGroupResponseV0Function · 0.36
TestHeartbeatRequestV0Function · 0.36