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

Struct fetchResponseBuilder

builder_test.go:18–22  ·  builder_test.go::fetchResponseBuilder

This file defines builders to assist in creating kafka payloads for unit testing. fetchResponseBuilder builds v10 fetch responses. The version of the v10 fetch responses are not as important as the message sets contained within, as this type is ultimately used to unit test the message set reader tha

Source from the content-addressed store, hash-verified

16// type is ultimately used to unit test the message set reader that consumes the
17// rest of the response once the header has been parsed.
18type fetchResponseBuilder struct {
19 header fetchResponseHeader
20 msgSets []messageSetBuilder
21 rendered []byte
22}
23
24type fetchResponseHeader struct {
25 throttle int32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected