SYMBOL INDEX (2948 symbols across 269 files) FILE: addoffsetstotxn.go type AddOffsetsToTxnRequest (line 13) | type AddOffsetsToTxnRequest struct type AddOffsetsToTxnResponse (line 32) | type AddOffsetsToTxnResponse struct method AddOffsetsToTxn (line 45) | func (c *Client) AddOffsetsToTxn( FILE: addoffsetstotxn_test.go function TestClientAddOffsetsToTxn (line 13) | func TestClientAddOffsetsToTxn(t *testing.T) { FILE: addpartitionstotxn.go type AddPartitionToTxn (line 14) | type AddPartitionToTxn struct type AddPartitionsToTxnRequest (line 20) | type AddPartitionsToTxnRequest struct type AddPartitionsToTxnResponse (line 39) | type AddPartitionsToTxnResponse struct type AddPartitionToTxnPartition (line 49) | type AddPartitionToTxnPartition struct method AddPartitionsToTxn (line 62) | func (c *Client) AddPartitionsToTxn( FILE: addpartitionstotxn_test.go function TestClientAddPartitionsToTxn (line 13) | func TestClientAddPartitionsToTxn(t *testing.T) { FILE: address.go function TCP (line 9) | func TCP(address ...string) net.Addr { return makeNetAddr("tcp", address) } function makeNetAddr (line 11) | func makeNetAddr(network string, addresses []string) net.Addr { function makeAddr (line 22) | func makeAddr(network, address string) net.Addr { function makeMultiAddr (line 29) | func makeMultiAddr(network string, addresses []string) net.Addr { type networkAddress (line 37) | type networkAddress struct method Network (line 42) | func (a *networkAddress) Network() string { return a.network } method String (line 44) | func (a *networkAddress) String() string { return a.address } type multiAddr (line 46) | type multiAddr method Network (line 48) | func (m multiAddr) Network() string { return m.join(net.Addr.Network) } method String (line 50) | func (m multiAddr) String() string { return m.join(net.Addr.String) } method join (line 52) | func (m multiAddr) join(f func(net.Addr) string) string { FILE: address_test.go function TestNetworkAddress (line 8) | func TestNetworkAddress(t *testing.T) { FILE: alterclientquotas.go type AlterClientQuotasRequest (line 14) | type AlterClientQuotasRequest struct type AlterClientQuotaEntry (line 25) | type AlterClientQuotaEntry struct type AlterClientQuotaEntity (line 33) | type AlterClientQuotaEntity struct type AlterClientQuotaOps (line 41) | type AlterClientQuotaOps struct type AlterClientQuotaResponseQuotas (line 52) | type AlterClientQuotaResponseQuotas struct type AlterClientQuotasResponse (line 63) | type AlterClientQuotasResponse struct method AlterClientQuotas (line 73) | func (c *Client) AlterClientQuotas(ctx context.Context, req *AlterClient... FILE: alterclientquotas_test.go function TestClientAlterClientQuotas (line 12) | func TestClientAlterClientQuotas(t *testing.T) { FILE: alterconfigs.go type AlterConfigsRequest (line 13) | type AlterConfigsRequest struct type AlterConfigRequestResource (line 25) | type AlterConfigRequestResource struct type AlterConfigRequestConfig (line 36) | type AlterConfigRequestConfig struct type AlterConfigsResponse (line 45) | type AlterConfigsResponse struct type AlterConfigsResponseResource (line 59) | type AlterConfigsResponseResource struct method AlterConfigs (line 66) | func (c *Client) AlterConfigs(ctx context.Context, req *AlterConfigsRequ... FILE: alterconfigs_test.go function TestClientAlterConfigs (line 11) | func TestClientAlterConfigs(t *testing.T) { FILE: alterpartitionreassignments.go type AlterPartitionReassignmentsRequest (line 12) | type AlterPartitionReassignmentsRequest struct type AlterPartitionReassignmentsRequestAssignment (line 29) | type AlterPartitionReassignmentsRequestAssignment struct type AlterPartitionReassignmentsResponse (line 41) | type AlterPartitionReassignmentsResponse struct type AlterPartitionReassignmentsResponsePartitionResult (line 52) | type AlterPartitionReassignmentsResponsePartitionResult struct method AlterPartitionReassignments (line 64) | func (c *Client) AlterPartitionReassignments( FILE: alterpartitionreassignments_test.go function TestClientAlterPartitionReassignments (line 11) | func TestClientAlterPartitionReassignments(t *testing.T) { function TestClientAlterPartitionReassignmentsMultiTopics (line 62) | func TestClientAlterPartitionReassignmentsMultiTopics(t *testing.T) { FILE: alteruserscramcredentials.go type AlterUserScramCredentialsRequest (line 14) | type AlterUserScramCredentialsRequest struct type ScramMechanism (line 25) | type ScramMechanism constant ScramMechanismUnknown (line 28) | ScramMechanismUnknown ScramMechanism = iota constant ScramMechanismSha256 (line 29) | ScramMechanismSha256 constant ScramMechanismSha512 (line 30) | ScramMechanismSha512 type UserScramCredentialsDeletion (line 33) | type UserScramCredentialsDeletion struct type UserScramCredentialsUpsertion (line 38) | type UserScramCredentialsUpsertion struct type AlterUserScramCredentialsResponse (line 48) | type AlterUserScramCredentialsResponse struct type AlterUserScramCredentialsResponseUser (line 56) | type AlterUserScramCredentialsResponseUser struct method AlterUserScramCredentials (line 63) | func (c *Client) AlterUserScramCredentials(ctx context.Context, req *Alt... FILE: alteruserscramcredentials_test.go function TestAlterUserScramCredentials (line 10) | func TestAlterUserScramCredentials(t *testing.T) { FILE: apiversions.go type ApiVersionsRequest (line 12) | type ApiVersionsRequest struct type ApiVersionsResponse (line 18) | type ApiVersionsResponse struct type ApiVersionsResponseApiKey (line 27) | type ApiVersionsResponseApiKey struct method ApiVersions (line 41) | func (c *Client) ApiVersions( FILE: apiversions_test.go function TestClientApiVersions (line 8) | func TestClientApiVersions(t *testing.T) { FILE: balancer.go type Balancer (line 17) | type Balancer interface type BalancerFunc (line 30) | type BalancerFunc method Balance (line 33) | func (f BalancerFunc) Balance(msg Message, partitions ...int) int { type RoundRobin (line 41) | type RoundRobin struct method Balance (line 51) | func (rr *RoundRobin) Balance(msg Message, partitions ...int) int { method balance (line 55) | func (rr *RoundRobin) balance(partitions []int) int { type LeastBytes (line 76) | type LeastBytes struct method Balance (line 87) | func (lb *LeastBytes) Balance(msg Message, partitions ...int) int { method makeCounters (line 111) | func (lb *LeastBytes) makeCounters(partitions ...int) (counters []leas... type leastBytesCounter (line 81) | type leastBytesCounter struct type Hash (line 143) | type Hash struct method Balance (line 153) | func (h *Hash) Balance(msg Message, partitions ...int) int { type ReferenceHash (line 194) | type ReferenceHash struct method Balance (line 204) | func (h *ReferenceHash) Balance(msg Message, partitions ...int) int { type randomBalancer (line 230) | type randomBalancer struct method Balance (line 234) | func (b randomBalancer) Balance(msg Message, partitions ...int) (parti... type CRC32Balancer (line 256) | type CRC32Balancer struct method Balance (line 261) | func (b CRC32Balancer) Balance(msg Message, partitions ...int) (partit... type Murmur2Balancer (line 293) | type Murmur2Balancer struct method Balance (line 298) | func (b Murmur2Balancer) Balance(msg Message, partitions ...int) (part... function murmur2 (line 311) | func murmur2(data []byte) uint32 { FILE: balancer_test.go function TestHashBalancer (line 10) | func TestHashBalancer(t *testing.T) { function TestReferenceHashBalancer (line 66) | func TestReferenceHashBalancer(t *testing.T) { function TestCRC32Balancer (line 125) | func TestCRC32Balancer(t *testing.T) { function TestMurmur2 (line 200) | func TestMurmur2(t *testing.T) { function TestMurmur2Balancer (line 231) | func TestMurmur2Balancer(t *testing.T) { function TestLeastBytes (line 340) | func TestLeastBytes(t *testing.T) { function TestRoundRobin (line 415) | func TestRoundRobin(t *testing.T) { FILE: batch.go type Batch (line 20) | type Batch struct method Throttle (line 45) | func (batch *Batch) Throttle() time.Duration { method HighWaterMark (line 50) | func (batch *Batch) HighWaterMark() int64 { method Partition (line 55) | func (batch *Batch) Partition() int { method Offset (line 60) | func (batch *Batch) Offset() int64 { method Close (line 69) | func (batch *Batch) Close() error { method close (line 76) | func (batch *Batch) close() (err error) { method Err (line 128) | func (batch *Batch) Err() error { return batch.err } method Read (line 140) | func (batch *Batch) Read(b []byte) (int, error) { method ReadMessage (line 192) | func (batch *Batch) ReadMessage() (Message, error) { method readMessage (line 239) | func (batch *Batch) readMessage( function checkTimeoutErr (line 306) | func checkTimeoutErr(deadline time.Time) (err error) { FILE: batch_test.go function TestBatchDontExpectEOF (line 12) | func TestBatchDontExpectEOF(t *testing.T) { FILE: buffer.go function newBuffer (line 12) | func newBuffer() *bytes.Buffer { function acquireBuffer (line 18) | func acquireBuffer() *bytes.Buffer { function releaseBuffer (line 22) | func releaseBuffer(b *bytes.Buffer) { FILE: builder_test.go type fetchResponseBuilder (line 18) | type fetchResponseBuilder struct method messages (line 36) | func (b *fetchResponseBuilder) messages() (res []Message) { method bytes (line 43) | func (b *fetchResponseBuilder) bytes() []byte { method Len (line 68) | func (b *fetchResponseBuilder) Len() int { type fetchResponseHeader (line 24) | type fetchResponseHeader struct type messageSetBuilder (line 72) | type messageSetBuilder interface type v0MessageSetBuilder (line 77) | type v0MessageSetBuilder struct method messages (line 82) | func (f v0MessageSetBuilder) messages() []Message { method bytes (line 86) | func (f v0MessageSetBuilder) bytes() []byte { type v1MessageSetBuilder (line 118) | type v1MessageSetBuilder struct method messages (line 123) | func (f v1MessageSetBuilder) messages() []Message { method bytes (line 127) | func (f v1MessageSetBuilder) bytes() []byte { type v2MessageSetBuilder (line 165) | type v2MessageSetBuilder struct method messages (line 170) | func (f v2MessageSetBuilder) messages() []Message { method bytes (line 174) | func (f v2MessageSetBuilder) bytes() []byte { type kafkaWriteBuffer (line 226) | type kafkaWriteBuffer struct method Bytes (line 237) | func (f *kafkaWriteBuffer) Bytes() []byte { method call (line 245) | func (f *kafkaWriteBuffer) call(cb func(wb *kafkaWriteBuffer)) []byte { function newWB (line 231) | func newWB() *kafkaWriteBuffer { function mustCompress (line 254) | func mustCompress(bs []byte, codec compress.Codec) (res []byte) { FILE: client.go constant defaultCreateTopicsTimeout (line 14) | defaultCreateTopicsTimeout = 2 * time.Second constant defaultDeleteTopicsTimeout (line 15) | defaultDeleteTopicsTimeout = 2 * time.Second constant defaultCreatePartitionsTimeout (line 16) | defaultCreatePartitionsTimeout = 2 * time.Second constant defaultProduceTimeout (line 17) | defaultProduceTimeout = 500 * time.Millisecond constant defaultMaxWait (line 18) | defaultMaxWait = 500 * time.Millisecond type Client (line 28) | type Client struct method ConsumerOffsets (line 65) | func (c *Client) ConsumerOffsets(ctx context.Context, tg TopicAndGroup... method roundTrip (line 102) | func (c *Client) roundTrip(ctx context.Context, addr net.Addr, msg pro... method transport (line 118) | func (c *Client) transport() RoundTripper { method timeout (line 125) | func (c *Client) timeout(ctx context.Context, defaultTimeout time.Dura... method timeoutMs (line 144) | func (c *Client) timeoutMs(ctx context.Context, defaultTimeout time.Du... type TopicAndGroup (line 55) | type TopicAndGroup struct FILE: client_test.go function newLocalClientAndTopic (line 17) | func newLocalClientAndTopic() (*Client, string, func()) { function newLocalClientWithTopic (line 23) | func newLocalClientWithTopic(topic string, partitions int) (*Client, fun... function clientCreateTopic (line 37) | func clientCreateTopic(client *Client, topic string, partitions int) err... function clientEndTxn (line 71) | func clientEndTxn(client *Client, req *EndTxnRequest) error { function newLocalClient (line 82) | func newLocalClient() (*Client, func()) { function newClient (line 86) | func newClient(addr net.Addr) (*Client, func()) { function TestClient (line 105) | func TestClient(t *testing.T) { function testConsumerGroupFetchOffsets (line 130) | func testConsumerGroupFetchOffsets(t *testing.T, ctx context.Context, cl... function TestClientProduceAndConsume (line 194) | func TestClientProduceAndConsume(t *testing.T) { FILE: commit.go type commit (line 5) | type commit struct function makeCommit (line 13) | func makeCommit(msg Message) commit { function makeCommits (line 24) | func makeCommits(msgs ...Message) []commit { type commitRequest (line 36) | type commitRequest struct FILE: commit_test.go function TestMakeCommit (line 5) | func TestMakeCommit(t *testing.T) { FILE: compress/compress.go type Compression (line 17) | type Compression method Codec (line 27) | func (c Compression) Codec() Codec { method String (line 34) | func (c Compression) String() string { method MarshalText (line 41) | func (c Compression) MarshalText() ([]byte, error) { method UnmarshalText (line 45) | func (c *Compression) UnmarshalText(b []byte) error { constant None (line 20) | None Compression = 0 constant Gzip (line 21) | Gzip Compression = 1 constant Snappy (line 22) | Snappy Compression = 2 constant Lz4 (line 23) | Lz4 Compression = 3 constant Zstd (line 24) | Zstd Compression = 4 type Codec (line 89) | type Codec interface FILE: compress/compress_test.go function init (line 28) | func init() { function TestCodecs (line 34) | func TestCodecs(t *testing.T) { function TestCompression (line 44) | func TestCompression(t *testing.T) { function compress (line 57) | func compress(codec pkg.Codec, src []byte) ([]byte, error) { function decompress (line 71) | func decompress(codec pkg.Codec, src []byte) ([]byte, error) { function testEncodeDecode (line 84) | func testEncodeDecode(t *testing.T, m kafka.Message, codec pkg.Codec) { function TestCompressedMessages (line 138) | func TestCompressedMessages(t *testing.T) { function testCompressedMessages (line 148) | func testCompressedMessages(t *testing.T, codec pkg.Codec) { function TestMixedCompressedMessages (line 218) | func TestMixedCompressedMessages(t *testing.T) { type noopCodec (line 293) | type noopCodec struct method Code (line 295) | func (noopCodec) Code() int8 { method Name (line 299) | func (noopCodec) Name() string { method NewReader (line 303) | func (noopCodec) NewReader(r io.Reader) io.ReadCloser { method NewWriter (line 307) | func (noopCodec) NewWriter(w io.Writer) io.WriteCloser { type nopWriteCloser (line 311) | type nopWriteCloser struct method Close (line 313) | func (nopWriteCloser) Close() error { return nil } function BenchmarkCompression (line 315) | func BenchmarkCompression(b *testing.B) { function benchmarkCompression (line 381) | func benchmarkCompression(b *testing.B, codec pkg.Codec, buf *bytes.Buff... function init (line 444) | func init() { function makeTopic (line 448) | func makeTopic() string { function newLocalClientAndTopic (line 452) | func newLocalClientAndTopic() (*kafka.Client, string, func()) { function newLocalClient (line 492) | func newLocalClient() (*kafka.Client, func()) { function newClient (line 496) | func newClient(addr net.Addr) (*kafka.Client, func()) { FILE: compress/gzip/gzip.go type Codec (line 16) | type Codec struct method Code (line 27) | func (c *Codec) Code() int8 { return 1 } method Name (line 30) | func (c *Codec) Name() string { return "gzip" } method NewReader (line 33) | func (c *Codec) NewReader(r io.Reader) io.ReadCloser { method NewWriter (line 51) | func (c *Codec) NewWriter(w io.Writer) io.WriteCloser { method level (line 66) | func (c *Codec) level() int { type reader (line 73) | type reader struct method Close (line 75) | func (r *reader) Close() (err error) { type writer (line 92) | type writer struct method Close (line 97) | func (w *writer) Close() (err error) { type emptyReader (line 107) | type emptyReader struct method ReadByte (line 109) | func (emptyReader) ReadByte() (byte, error) { return 0, io.EOF } method Read (line 111) | func (emptyReader) Read([]byte) (int, error) { return 0, io.EOF } type errorReader (line 113) | type errorReader struct method Close (line 115) | func (r *errorReader) Close() error { return r.err } method Read (line 117) | func (r *errorReader) Read([]byte) (int, error) { return 0, r.err } type errorWriter (line 119) | type errorWriter struct method Close (line 121) | func (w *errorWriter) Close() error { return w.err } method Write (line 123) | func (w *errorWriter) Write([]byte) (int, error) { return 0, w.err } FILE: compress/lz4/lz4.go type Codec (line 17) | type Codec struct method Code (line 20) | func (c *Codec) Code() int8 { return 3 } method Name (line 23) | func (c *Codec) Name() string { return "lz4" } method NewReader (line 26) | func (c *Codec) NewReader(r io.Reader) io.ReadCloser { method NewWriter (line 37) | func (c *Codec) NewWriter(w io.Writer) io.WriteCloser { type reader (line 47) | type reader struct method Close (line 49) | func (r *reader) Close() (err error) { type writer (line 58) | type writer struct method Close (line 60) | func (w *writer) Close() (err error) { FILE: compress/snappy/go-xerial-snappy/fuzz.go function Fuzz (line 5) | func Fuzz(data []byte) int { FILE: compress/snappy/go-xerial-snappy/snappy.go constant sizeOffset (line 12) | sizeOffset = 16 constant sizeBytes (line 13) | sizeBytes = 4 function min (line 27) | func min(x, y int) int { function Encode (line 35) | func Encode(src []byte) []byte { function EncodeStream (line 43) | func EncodeStream(dst, src []byte) []byte { function Decode (line 76) | func Decode(src []byte) ([]byte, error) { function DecodeInto (line 85) | func DecodeInto(dst, src []byte) ([]byte, error) { FILE: compress/snappy/go-xerial-snappy/snappy_test.go constant largeString (line 9) | largeString = `Sed ut perspiciatis unde omnis iste natus error sit volup... function makeMassive (line 23) | func makeMassive(input string, numCopies int) string { function TestSnappyEncode (line 33) | func TestSnappyEncode(t *testing.T) { function TestSnappyEncodeStream (line 42) | func TestSnappyEncodeStream(t *testing.T) { function TestSnappyLargeStringEncodeStream (line 57) | func TestSnappyLargeStringEncodeStream(t *testing.T) { function TestSnappyDecode (line 69) | func TestSnappyDecode(t *testing.T) { function TestSnappyDecodeStreams (line 80) | func TestSnappyDecodeStreams(t *testing.T) { function TestSnappyDecodeMalformedTruncatedHeader (line 91) | func TestSnappyDecodeMalformedTruncatedHeader(t *testing.T) { function TestSnappyDecodeMalformedTruncatedSize (line 102) | func TestSnappyDecodeMalformedTruncatedSize(t *testing.T) { function TestSnappyDecodeMalformedBNoData (line 114) | func TestSnappyDecodeMalformedBNoData(t *testing.T) { function TestSnappyMasterDecodeFailed (line 125) | func TestSnappyMasterDecodeFailed(t *testing.T) { function BenchmarkSnappyDecode (line 137) | func BenchmarkSnappyDecode(b *testing.B) { function BenchmarkSnappyDecodeInto (line 154) | func BenchmarkSnappyDecodeInto(b *testing.B) { function BenchmarkSnappyStreamDecode (line 177) | func BenchmarkSnappyStreamDecode(b *testing.B) { function BenchmarkSnappyStreamDecodeInto (line 194) | func BenchmarkSnappyStreamDecodeInto(b *testing.B) { function BenchmarkSnappyStreamDecodeMassive (line 215) | func BenchmarkSnappyStreamDecodeMassive(b *testing.B) { function BenchmarkSnappyStreamDecodeIntoMassive (line 231) | func BenchmarkSnappyStreamDecodeIntoMassive(b *testing.B) { FILE: compress/snappy/snappy.go type Framing (line 13) | type Framing constant Framed (line 16) | Framed Framing = iota constant Unframed (line 17) | Unframed type Compression (line 21) | type Compression constant DefaultCompression (line 24) | DefaultCompression Compression = iota constant FasterCompression (line 25) | FasterCompression constant BetterCompression (line 26) | BetterCompression constant BestCompression (line 27) | BestCompression type Codec (line 37) | type Codec struct method Code (line 48) | func (c *Codec) Code() int8 { return 2 } method Name (line 51) | func (c *Codec) Name() string { return "snappy" } method NewReader (line 54) | func (c *Codec) NewReader(r io.Reader) io.ReadCloser { method NewWriter (line 68) | func (c *Codec) NewWriter(w io.Writer) io.WriteCloser { type reader (line 89) | type reader struct method Close (line 91) | func (r *reader) Close() (err error) { type writer (line 100) | type writer struct method Close (line 102) | func (w *writer) Close() (err error) { FILE: compress/snappy/xerial.go constant defaultBufferSize (line 12) | defaultBufferSize = 32 * 1024 type xerialReader (line 17) | type xerialReader struct method Reset (line 27) | func (x *xerialReader) Reset(r io.Reader) { method Read (line 36) | func (x *xerialReader) Read(b []byte) (int, error) { method WriteTo (line 54) | func (x *xerialReader) WriteTo(w io.Writer) (int64, error) { method readChunk (line 76) | func (x *xerialReader) readChunk(dst []byte) (int, error) { method read (line 162) | func (x *xerialReader) read(b []byte) (int, error) { method readFull (line 168) | func (x *xerialReader) readFull(b []byte) (int, error) { type xerialWriter (line 176) | type xerialWriter struct method Reset (line 186) | func (x *xerialWriter) Reset(w io.Writer) { method ReadFrom (line 193) | func (x *xerialWriter) ReadFrom(r io.Reader) (int64, error) { method Write (line 224) | func (x *xerialWriter) Write(b []byte) (int, error) { method Flush (line 251) | func (x *xerialWriter) Flush() error { method write (line 287) | func (x *xerialWriter) write(b []byte) (int, error) { method full (line 293) | func (x *xerialWriter) full() bool { method fullEnough (line 297) | func (x *xerialWriter) fullEnough() bool { method grow (line 301) | func (x *xerialWriter) grow() { function align (line 307) | func align(n, a int) int { function isXerialHeader (line 319) | func isXerialHeader(src []byte) bool { function writeXerialHeader (line 323) | func writeXerialHeader(b []byte) { function writeXerialFrame (line 328) | func writeXerialFrame(b []byte, n int) { FILE: compress/snappy/xerial_test.go type simpleReader (line 17) | type simpleReader struct type simpleWriter (line 18) | type simpleWriter struct function TestXerialReaderSnappy (line 20) | func TestXerialReaderSnappy(t *testing.T) { function TestXerialReaderWriter (line 39) | func TestXerialReaderWriter(t *testing.T) { function TestXerialFramedCompression (line 63) | func TestXerialFramedCompression(t *testing.T) { function TestXerialFramedCompressionOptimized (line 88) | func TestXerialFramedCompressionOptimized(t *testing.T) { function TestXerialReaderAgainstGoXerialSnappy (line 113) | func TestXerialReaderAgainstGoXerialSnappy(t *testing.T) { function TestXerialWriterAgainstGoXerialSnappy (line 142) | func TestXerialWriterAgainstGoXerialSnappy(t *testing.T) { FILE: compress/zstd/zstd.go type Codec (line 13) | type Codec struct method Code (line 23) | func (c *Codec) Code() int8 { return 4 } method Name (line 26) | func (c *Codec) Name() string { return "zstd" } method NewReader (line 29) | func (c *Codec) NewReader(r io.Reader) io.ReadCloser { method level (line 46) | func (c *Codec) level() int { method zstdLevel (line 53) | func (c *Codec) zstdLevel() zstd.EncoderLevel { method NewWriter (line 98) | func (c *Codec) NewWriter(w io.Writer) io.WriteCloser { type reader (line 59) | type reader struct method Close (line 65) | func (r *reader) Close() error { method Read (line 76) | func (r *reader) Read(p []byte) (int, error) { method WriteTo (line 87) | func (r *reader) WriteTo(w io.Writer) (int64, error) { type writer (line 119) | type writer struct method Close (line 126) | func (w *writer) Close() error { method Write (line 144) | func (w *writer) Write(p []byte) (int, error) { method ReadFrom (line 155) | func (w *writer) ReadFrom(r io.Reader) (int64, error) { type devNull (line 165) | type devNull struct method Read (line 167) | func (devNull) Read([]byte) (int, error) { return 0, io.EOF } method Write (line 168) | func (devNull) Write([]byte) (int, error) { return 0, nil } FILE: compression.go constant Gzip (line 12) | Gzip Compression = compress.Gzip constant Snappy (line 13) | Snappy Compression = compress.Snappy constant Lz4 (line 14) | Lz4 Compression = compress.Lz4 constant Zstd (line 15) | Zstd Compression = compress.Zstd function resolveCodec (line 25) | func resolveCodec(code int8) (CompressionCodec, error) { FILE: conn.go type Conn (line 25) | type Conn struct method negotiateVersion (line 205) | func (c *Conn) negotiateVersion(key apiKey, sortedSupportedVersions ..... method loadVersions (line 217) | func (c *Conn) loadVersions() (apiVersionMap, error) { method Broker (line 240) | func (c *Conn) Broker() Broker { method Controller (line 252) | func (c *Conn) Controller() (broker Broker, err error) { method Brokers (line 279) | func (c *Conn) Brokers() ([]Broker, error) { method DeleteTopics (line 308) | func (c *Conn) DeleteTopics(topics ...string) error { method findCoordinator (line 318) | func (c *Conn) findCoordinator(request findCoordinatorRequestV0) (find... method heartbeat (line 345) | func (c *Conn) heartbeat(request heartbeatRequestV0) (heartbeatRespons... method joinGroup (line 371) | func (c *Conn) joinGroup(request joinGroupRequest) (joinGroupResponse,... method leaveGroup (line 402) | func (c *Conn) leaveGroup(request leaveGroupRequestV0) (leaveGroupResp... method listGroups (line 428) | func (c *Conn) listGroups(request listGroupsRequestV1) (listGroupsResp... method offsetCommit (line 454) | func (c *Conn) offsetCommit(request offsetCommitRequestV2) (offsetComm... method offsetFetch (line 485) | func (c *Conn) offsetFetch(request offsetFetchRequestV1) (offsetFetchR... method syncGroup (line 515) | func (c *Conn) syncGroup(request syncGroupRequestV0) (syncGroupRespons... method Close (line 539) | func (c *Conn) Close() error { method LocalAddr (line 544) | func (c *Conn) LocalAddr() net.Addr { method RemoteAddr (line 549) | func (c *Conn) RemoteAddr() net.Addr { method SetDeadline (line 563) | func (c *Conn) SetDeadline(t time.Time) error { method SetReadDeadline (line 572) | func (c *Conn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 582) | func (c *Conn) SetWriteDeadline(t time.Time) error { method Offset (line 592) | func (c *Conn) Offset() (offset int64, whence int) { method Seek (line 629) | func (c *Conn) Seek(offset int64, whence int) (int64, error) { method Read (line 709) | func (c *Conn) Read(b []byte) (int, error) { method ReadMessage (line 730) | func (c *Conn) ReadMessage(maxBytes int) (Message, error) { method ReadBatch (line 749) | func (c *Conn) ReadBatch(minBytes, maxBytes int) *Batch { method ReadBatchWith (line 758) | func (c *Conn) ReadBatchWith(cfg ReadBatchConfig) *Batch { method ReadOffset (line 896) | func (c *Conn) ReadOffset(t time.Time) (int64, error) { method ReadFirstOffset (line 901) | func (c *Conn) ReadFirstOffset() (int64, error) { method ReadLastOffset (line 906) | func (c *Conn) ReadLastOffset() (int64, error) { method ReadOffsets (line 912) | func (c *Conn) ReadOffsets() (first, last int64, err error) { method readOffset (line 926) | func (c *Conn) readOffset(t int64) (offset int64, err error) { method ReadPartitions (line 966) | func (c *Conn) ReadPartitions(topics ...string) (partitions []Partitio... method readPartitionsResponse (line 1000) | func (c *Conn) readPartitionsResponse(metadataVersion apiVersion, size... method readTopicMetadatav1 (line 1032) | func (c *Conn) readTopicMetadatav1(brokers map[int32]Broker, topicMeta... method readTopicMetadatav6 (line 1054) | func (c *Conn) readTopicMetadatav6(brokers map[int32]Broker, topicMeta... method Write (line 1100) | func (c *Conn) Write(b []byte) (int, error) { method WriteMessages (line 1107) | func (c *Conn) WriteMessages(msgs ...Message) (int, error) { method WriteCompressedMessages (line 1116) | func (c *Conn) WriteCompressedMessages(codec CompressionCodec, msgs ..... method WriteCompressedMessagesAt (line 1127) | func (c *Conn) WriteCompressedMessagesAt(codec CompressionCodec, msgs ... method writeCompressedMessages (line 1131) | func (c *Conn) writeCompressedMessages(codec CompressionCodec, msgs ..... method SetRequiredAcks (line 1277) | func (c *Conn) SetRequiredAcks(n int) error { method writeRequest (line 1287) | func (c *Conn) writeRequest(apiKey apiKey, apiVersion apiVersion, corr... method readResponse (line 1295) | func (c *Conn) readResponse(size int, res interface{}) error { method peekResponseSizeAndID (line 1306) | func (c *Conn) peekResponseSizeAndID() (int32, int32, error) { method skipResponseSizeAndID (line 1315) | func (c *Conn) skipResponseSizeAndID() { method readDeadline (line 1319) | func (c *Conn) readDeadline() time.Time { method writeDeadline (line 1323) | func (c *Conn) writeDeadline() time.Time { method readOperation (line 1327) | func (c *Conn) readOperation(write func(time.Time, int32) error, read ... method writeOperation (line 1331) | func (c *Conn) writeOperation(write func(time.Time, int32) error, read... method enter (line 1335) | func (c *Conn) enter() { method leave (line 1339) | func (c *Conn) leave() { method concurrency (line 1343) | func (c *Conn) concurrency() int { method do (line 1347) | func (c *Conn) do(d *connDeadline, write func(time.Time, int32) error,... method doRequest (line 1370) | func (c *Conn) doRequest(d *connDeadline, write func(time.Time, int32)... method waitResponse (line 1390) | func (c *Conn) waitResponse(d *connDeadline, id int32) (deadline time.... method requestHeader (line 1432) | func (c *Conn) requestHeader(apiKey apiKey, apiVersion apiVersion, cor... method ApiVersions (line 1441) | func (c *Conn) ApiVersions() ([]ApiVersion, error) { method saslHandshake (line 1574) | func (c *Conn) saslHandshake(mechanism string) error { method saslAuthenticate (line 1605) | func (c *Conn) saslAuthenticate(data []byte) ([]byte, error) { type apiVersionMap (line 70) | type apiVersionMap method negotiate (line 72) | func (v apiVersionMap) negotiate(key apiKey, sortedSupportedVersions .... type ConnConfig (line 87) | type ConnConfig struct type ReadBatchConfig (line 102) | type ReadBatchConfig struct type IsolationLevel (line 128) | type IsolationLevel constant ReadUncommitted (line 131) | ReadUncommitted IsolationLevel = 0 constant ReadCommitted (line 132) | ReadCommitted IsolationLevel = 1 function init (line 141) | func init() { function NewConn (line 148) | func NewConn(conn net.Conn, topic string, partition int) *Conn { function emptyToNullable (line 155) | func emptyToNullable(transactionalID string) (result *string) { function NewConnWith (line 164) | func NewConnWith(conn net.Conn, config ConnConfig) *Conn { constant SeekStart (line 611) | SeekStart = 0 constant SeekAbsolute (line 612) | SeekAbsolute = 1 constant SeekEnd (line 613) | SeekEnd = 2 constant SeekCurrent (line 614) | SeekCurrent = 3 constant SeekDontCheck (line 620) | SeekDontCheck = 1 << 30 function readBrokerMetadata (line 1019) | func readBrokerMetadata(brokerMetadata []brokerMetadataV1) map[int32]Bro... function makeBrokers (line 1076) | func makeBrokers(brokers map[int32]Broker, ids ...int32) []Broker { type connDeadline (line 1504) | type connDeadline struct method deadline (line 1511) | func (d *connDeadline) deadline() time.Time { method setDeadline (line 1518) | func (d *connDeadline) setDeadline(t time.Time) { method setConnReadDeadline (line 1533) | func (d *connDeadline) setConnReadDeadline(conn net.Conn) time.Time { method setConnWriteDeadline (line 1542) | func (d *connDeadline) setConnWriteDeadline(conn net.Conn) time.Time { method unsetConnReadDeadline (line 1551) | func (d *connDeadline) unsetConnReadDeadline() { method unsetConnWriteDeadline (line 1557) | func (d *connDeadline) unsetConnWriteDeadline() { FILE: conn_test.go type timeout (line 21) | type timeout struct method Error (line 23) | func (*timeout) Error() string { return "timeout" } method Temporary (line 24) | func (*timeout) Temporary() bool { return true } method Timeout (line 25) | func (*timeout) Timeout() bool { return true } type connPipe (line 29) | type connPipe struct method Close (line 34) | func (c *connPipe) Close() error { method Read (line 43) | func (c *connPipe) Read(b []byte) (int, error) { method Write (line 57) | func (c *connPipe) Write(b []byte) (int, error) { method LocalAddr (line 76) | func (c *connPipe) LocalAddr() net.Addr { method RemoteAddr (line 80) | func (c *connPipe) RemoteAddr() net.Addr { method SetDeadline (line 84) | func (c *connPipe) SetDeadline(t time.Time) error { method SetReadDeadline (line 90) | func (c *connPipe) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 94) | func (c *connPipe) SetWriteDeadline(t time.Time) error { function init (line 98) | func init() { function makeTopic (line 102) | func makeTopic() string { function makeGroupID (line 106) | func makeGroupID() string { function makeTransactionalID (line 110) | func makeTransactionalID() string { function TestConn (line 114) | func TestConn(t *testing.T) { function testConnClose (line 364) | func testConnClose(t *testing.T, conn *Conn) { function testConnFirstOffset (line 370) | func testConnFirstOffset(t *testing.T, conn *Conn) { function testConnWrite (line 378) | func testConnWrite(t *testing.T, conn *Conn) { function testConnCloseAndWrite (line 390) | func testConnCloseAndWrite(t *testing.T, conn *Conn) { function testConnSeekFirstOffset (line 402) | func testConnSeekFirstOffset(t *testing.T, conn *Conn) { function testConnSeekLastOffset (line 419) | func testConnSeekLastOffset(t *testing.T, conn *Conn) { function testConnSeekCurrentOffset (line 436) | func testConnSeekCurrentOffset(t *testing.T, conn *Conn) { function testConnSeekRandomOffset (line 462) | func testConnSeekRandomOffset(t *testing.T, conn *Conn) { function testConnSeekDontCheck (line 479) | func testConnSeekDontCheck(t *testing.T, conn *Conn) { function testConnWriteReadSequentially (line 500) | func testConnWriteReadSequentially(t *testing.T, conn *Conn) { function testConnWriteBatchReadSequentially (line 524) | func testConnWriteBatchReadSequentially(t *testing.T, conn *Conn) { function testConnReadWatermarkFromBatch (line 549) | func testConnReadWatermarkFromBatch(t *testing.T, conn *Conn) { function testConnReadBatchWithNoMinMaxBytes (line 577) | func testConnReadBatchWithNoMinMaxBytes(t *testing.T, conn *Conn) { function testConnReadBatchWithMaxWait (line 608) | func testConnReadBatchWithMaxWait(t *testing.T, conn *Conn) { function waitForCoordinator (line 657) | func waitForCoordinator(t *testing.T, conn *Conn, groupID string) { function createGroup (line 680) | func createGroup(t *testing.T, conn *Conn, groupID string) (generationID... function testConnFindCoordinator (line 744) | func testConnFindCoordinator(t *testing.T, conn *Conn) { function testConnJoinGroupInvalidGroupID (line 773) | func testConnJoinGroupInvalidGroupID(t *testing.T, conn *Conn) { function testConnJoinGroupInvalidSessionTimeout (line 780) | func testConnJoinGroupInvalidSessionTimeout(t *testing.T, conn *Conn) { function testConnJoinGroupInvalidRefreshTimeout (line 792) | func testConnJoinGroupInvalidRefreshTimeout(t *testing.T, conn *Conn) { function testConnHeartbeatErr (line 805) | func testConnHeartbeatErr(t *testing.T, conn *Conn) { function testConnLeaveGroupErr (line 817) | func testConnLeaveGroupErr(t *testing.T, conn *Conn) { function testConnSyncGroupErr (line 829) | func testConnSyncGroupErr(t *testing.T, conn *Conn) { function testConnListGroupsReturnsGroups (line 841) | func testConnListGroupsReturnsGroups(t *testing.T, conn *Conn) { function testConnFetchAndCommitOffsets (line 873) | func testConnFetchAndCommitOffsets(t *testing.T, conn *Conn) { function testConnWriteReadConcurrently (line 942) | func testConnWriteReadConcurrently(t *testing.T, conn *Conn) { function testConnReadShortBuffer (line 985) | func testConnReadShortBuffer(t *testing.T, conn *Conn) { function testConnReadEmptyWithDeadline (line 1011) | func testConnReadEmptyWithDeadline(t *testing.T, conn *Conn) { function testDeleteTopics (line 1029) | func testDeleteTopics(t *testing.T, conn *Conn) { function testDeleteTopicsInvalidTopic (line 1061) | func testDeleteTopicsInvalidTopic(t *testing.T, conn *Conn) { function testController (line 1087) | func testController(t *testing.T, conn *Conn) { function testBrokers (line 1107) | func testBrokers(t *testing.T, conn *Conn) { function testConnBroker (line 1122) | func testConnBroker(t *testing.T, conn *Conn) { function TestReadPartitionsNoTopic (line 1139) | func TestReadPartitionsNoTopic(t *testing.T) { function TestUnsupportedSASLMechanism (line 1156) | func TestUnsupportedSASLMechanism(t *testing.T) { constant benchmarkMessageCount (line 1173) | benchmarkMessageCount = 100 function BenchmarkConn (line 1175) | func BenchmarkConn(b *testing.B) { function benchmarkConnSeek (line 1232) | func benchmarkConnSeek(b *testing.B, conn *Conn, _ []byte) { function benchmarkConnRead (line 1241) | func benchmarkConnRead(b *testing.B, conn *Conn, a []byte) { function benchmarkConnReadBatch (line 1266) | func benchmarkConnReadBatch(b *testing.B, conn *Conn, a []byte) { function benchmarkConnReadOffsets (line 1295) | func benchmarkConnReadOffsets(b *testing.B, conn *Conn, _ []byte) { function benchmarkConnWrite (line 1305) | func benchmarkConnWrite(b *testing.B, conn *Conn, _ []byte) { function TestEmptyToNullableReturnsNil (line 1323) | func TestEmptyToNullableReturnsNil(t *testing.T) { function TestEmptyToNullableLeavesStringsIntact (line 1329) | func TestEmptyToNullableLeavesStringsIntact(t *testing.T) { function TestMakeBrokersAllPresent (line 1337) | func TestMakeBrokersAllPresent(t *testing.T) { function TestMakeBrokersOneMissing (line 1354) | func TestMakeBrokersOneMissing(t *testing.T) { FILE: consumergroup.go constant defaultProtocolType (line 31) | defaultProtocolType = "consumer" constant defaultHeartbeatInterval (line 39) | defaultHeartbeatInterval = 3 * time.Second constant defaultSessionTimeout (line 43) | defaultSessionTimeout = 30 * time.Second constant defaultRebalanceTimeout (line 47) | defaultRebalanceTimeout = 30 * time.Second constant defaultJoinGroupBackoff (line 51) | defaultJoinGroupBackoff = 5 * time.Second constant defaultRetentionTime (line 55) | defaultRetentionTime = -1 * time.Millisecond constant defaultPartitionWatchTime (line 59) | defaultPartitionWatchTime = 5 * time.Second constant defaultTimeout (line 63) | defaultTimeout = 5 * time.Second type ConsumerGroupConfig (line 68) | type ConsumerGroupConfig struct method Validate (line 170) | func (config *ConsumerGroupConfig) Validate() error { type PartitionAssignment (line 264) | type PartitionAssignment struct type genCtx (line 279) | type genCtx struct method Done (line 283) | func (c genCtx) Done() <-chan struct{} { method Err (line 287) | func (c genCtx) Err() error { method Deadline (line 296) | func (c genCtx) Deadline() (time.Time, bool) { method Value (line 300) | func (c genCtx) Value(interface{}) interface{} { type Generation (line 308) | type Generation struct method close (line 344) | func (g *Generation) close() { method Start (line 375) | func (g *Generation) Start(fn func(ctx context.Context)) { method CommitOffsets (line 418) | func (g *Generation) CommitOffsets(offsets map[string]map[int]int64) e... method heartbeatLoop (line 464) | func (g *Generation) heartbeatLoop(interval time.Duration) { method partitionWatcher (line 500) | func (g *Generation) partitionWatcher(interval time.Duration, topic st... type coordinator (line 555) | type coordinator interface type timeoutCoordinator (line 573) | type timeoutCoordinator struct method Close (line 580) | func (t *timeoutCoordinator) Close() error { method findCoordinator (line 584) | func (t *timeoutCoordinator) findCoordinator(req findCoordinatorReques... method joinGroup (line 591) | func (t *timeoutCoordinator) joinGroup(req joinGroupRequest) (joinGrou... method syncGroup (line 600) | func (t *timeoutCoordinator) syncGroup(req syncGroupRequestV0) (syncGr... method leaveGroup (line 609) | func (t *timeoutCoordinator) leaveGroup(req leaveGroupRequestV0) (leav... method heartbeat (line 616) | func (t *timeoutCoordinator) heartbeat(req heartbeatRequestV0) (heartb... method offsetFetch (line 623) | func (t *timeoutCoordinator) offsetFetch(req offsetFetchRequestV1) (of... method offsetCommit (line 630) | func (t *timeoutCoordinator) offsetCommit(req offsetCommitRequestV2) (... method readPartitions (line 637) | func (t *timeoutCoordinator) readPartitions(topics ...string) ([]Parti... function NewConsumerGroup (line 648) | func NewConsumerGroup(config ConsumerGroupConfig) (*ConsumerGroup, error) { type ConsumerGroup (line 672) | type ConsumerGroup struct method Close (line 685) | func (cg *ConsumerGroup) Close() error { method Next (line 701) | func (cg *ConsumerGroup) Next(ctx context.Context) (*Generation, error) { method run (line 714) | func (cg *ConsumerGroup) run() { method nextGeneration (line 776) | func (cg *ConsumerGroup) nextGeneration(memberID string) (string, erro... method coordinator (line 898) | func (cg *ConsumerGroup) coordinator() (coordinator, error) { method joinGroup (line 934) | func (cg *ConsumerGroup) joinGroup(conn coordinator, memberID string) ... method makeJoinGroupRequest (line 981) | func (cg *ConsumerGroup) makeJoinGroupRequest(memberID string) (joinGr... method assignTopicPartitions (line 1010) | func (cg *ConsumerGroup) assignTopicPartitions(conn coordinator, group... method makeMemberProtocolMetadata (line 1053) | func (cg *ConsumerGroup) makeMemberProtocolMetadata(in []joinGroupResp... method syncGroup (line 1081) | func (cg *ConsumerGroup) syncGroup(conn coordinator, memberID string, ... method makeSyncGroupRequestV0 (line 1110) | func (cg *ConsumerGroup) makeSyncGroupRequestV0(memberID string, gener... method fetchOffsets (line 1146) | func (cg *ConsumerGroup) fetchOffsets(conn coordinator, subs map[strin... method makeAssignments (line 1182) | func (cg *ConsumerGroup) makeAssignments(assignments map[string][]int3... method leaveGroup (line 1205) | func (cg *ConsumerGroup) leaveGroup(memberID string) error { method withLogger (line 1240) | func (cg *ConsumerGroup) withLogger(do func(Logger)) { method withErrorLogger (line 1246) | func (cg *ConsumerGroup) withErrorLogger(do func(Logger)) { function makeConnect (line 878) | func makeConnect(config ConsumerGroupConfig) func(dialer *Dialer, broker... FILE: consumergroup_test.go type mockCoordinator (line 16) | type mockCoordinator struct method Close (line 28) | func (c mockCoordinator) Close() error { method findCoordinator (line 35) | func (c mockCoordinator) findCoordinator(req findCoordinatorRequestV0)... method joinGroup (line 42) | func (c mockCoordinator) joinGroup(req joinGroupRequest) (joinGroupRes... method syncGroup (line 49) | func (c mockCoordinator) syncGroup(req syncGroupRequestV0) (syncGroupR... method leaveGroup (line 56) | func (c mockCoordinator) leaveGroup(req leaveGroupRequestV0) (leaveGro... method heartbeat (line 63) | func (c mockCoordinator) heartbeat(req heartbeatRequestV0) (heartbeatR... method offsetFetch (line 70) | func (c mockCoordinator) offsetFetch(req offsetFetchRequestV1) (offset... method offsetCommit (line 77) | func (c mockCoordinator) offsetCommit(req offsetCommitRequestV2) (offs... method readPartitions (line 84) | func (c mockCoordinator) readPartitions(topics ...string) ([]Partition... function TestValidateConsumerGroupConfig (line 91) | func TestValidateConsumerGroupConfig(t *testing.T) { function TestReaderAssignTopicPartitions (line 120) | func TestReaderAssignTopicPartitions(t *testing.T) { function TestConsumerGroup (line 244) | func TestConsumerGroup(t *testing.T) { function TestConsumerGroupErrors (line 346) | func TestConsumerGroupErrors(t *testing.T) { function TestGenerationExitsOnPartitionChange (line 599) | func TestGenerationExitsOnPartitionChange(t *testing.T) { function TestGenerationStartsFunctionAfterClosed (line 661) | func TestGenerationStartsFunctionAfterClosed(t *testing.T) { FILE: crc32.go type crc32Writer (line 8) | type crc32Writer struct method update (line 14) | func (w *crc32Writer) update(b []byte) { method writeInt8 (line 18) | func (w *crc32Writer) writeInt8(i int8) { method writeInt16 (line 23) | func (w *crc32Writer) writeInt16(i int16) { method writeInt32 (line 28) | func (w *crc32Writer) writeInt32(i int32) { method writeInt64 (line 33) | func (w *crc32Writer) writeInt64(i int64) { method writeBytes (line 38) | func (w *crc32Writer) writeBytes(b []byte) { method Write (line 47) | func (w *crc32Writer) Write(b []byte) (int, error) { method WriteString (line 52) | func (w *crc32Writer) WriteString(s string) (int, error) { FILE: crc32_test.go function TestMessageCRC32 (line 9) | func TestMessageCRC32(t *testing.T) { FILE: createacls.go type CreateACLsRequest (line 15) | type CreateACLsRequest struct type CreateACLsResponse (line 25) | type CreateACLsResponse struct type ACLPermissionType (line 37) | type ACLPermissionType method String (line 46) | func (apt ACLPermissionType) String() string { method MarshalText (line 61) | func (apt ACLPermissionType) MarshalText() ([]byte, error) { method UnmarshalText (line 66) | func (apt *ACLPermissionType) UnmarshalText(text []byte) error { constant ACLPermissionTypeUnknown (line 40) | ACLPermissionTypeUnknown ACLPermissionType = 0 constant ACLPermissionTypeAny (line 41) | ACLPermissionTypeAny ACLPermissionType = 1 constant ACLPermissionTypeDeny (line 42) | ACLPermissionTypeDeny ACLPermissionType = 2 constant ACLPermissionTypeAllow (line 43) | ACLPermissionTypeAllow ACLPermissionType = 3 type ACLOperationType (line 83) | type ACLOperationType method String (line 101) | func (aot ACLOperationType) String() string { method MarshalText (line 125) | func (aot ACLOperationType) MarshalText() ([]byte, error) { method UnmarshalText (line 130) | func (aot *ACLOperationType) UnmarshalText(text []byte) error { constant ACLOperationTypeUnknown (line 86) | ACLOperationTypeUnknown ACLOperationType = 0 constant ACLOperationTypeAny (line 87) | ACLOperationTypeAny ACLOperationType = 1 constant ACLOperationTypeAll (line 88) | ACLOperationTypeAll ACLOperationType = 2 constant ACLOperationTypeRead (line 89) | ACLOperationTypeRead ACLOperationType = 3 constant ACLOperationTypeWrite (line 90) | ACLOperationTypeWrite ACLOperationType = 4 constant ACLOperationTypeCreate (line 91) | ACLOperationTypeCreate ACLOperationType = 5 constant ACLOperationTypeDelete (line 92) | ACLOperationTypeDelete ACLOperationType = 6 constant ACLOperationTypeAlter (line 93) | ACLOperationTypeAlter ACLOperationType = 7 constant ACLOperationTypeDescribe (line 94) | ACLOperationTypeDescribe ACLOperationType = 8 constant ACLOperationTypeClusterAction (line 95) | ACLOperationTypeClusterAction ACLOperationType = 9 constant ACLOperationTypeDescribeConfigs (line 96) | ACLOperationTypeDescribeConfigs ACLOperationType = 10 constant ACLOperationTypeAlterConfigs (line 97) | ACLOperationTypeAlterConfigs ACLOperationType = 11 constant ACLOperationTypeIdempotentWrite (line 98) | ACLOperationTypeIdempotentWrite ACLOperationType = 12 type ACLEntry (line 157) | type ACLEntry struct method CreateACLs (line 169) | func (c *Client) CreateACLs(ctx context.Context, req *CreateACLsRequest)... FILE: createacls_test.go function TestClientCreateACLs (line 10) | func TestClientCreateACLs(t *testing.T) { function TestACLPermissionTypeMarshal (line 54) | func TestACLPermissionTypeMarshal(t *testing.T) { function TestACLOperationTypeMarshal (line 71) | func TestACLOperationTypeMarshal(t *testing.T) { FILE: createpartitions.go type CreatePartitionsRequest (line 14) | type CreatePartitionsRequest struct type CreatePartitionsResponse (line 28) | type CreatePartitionsResponse struct method CreatePartitions (line 42) | func (c *Client) CreatePartitions(ctx context.Context, req *CreatePartit... type TopicPartitionsConfig (line 76) | type TopicPartitionsConfig struct method assignments (line 87) | func (t *TopicPartitionsConfig) assignments() []createpartitions.Reque... type TopicPartitionAssignment (line 100) | type TopicPartitionAssignment struct FILE: createpartitions_test.go function TestClientCreatePartitions (line 10) | func TestClientCreatePartitions(t *testing.T) { function TestClientCreatePartitionsNoAssignments (line 45) | func TestClientCreatePartitionsNoAssignments(t *testing.T) { FILE: createtopics.go type CreateTopicsRequest (line 15) | type CreateTopicsRequest struct type CreateTopicsResponse (line 32) | type CreateTopicsResponse struct method CreateTopics (line 49) | func (c *Client) CreateTopics(ctx context.Context, req *CreateTopicsRequ... type ConfigEntry (line 84) | type ConfigEntry struct method toCreateTopicsRequestV0ConfigEntry (line 89) | func (c ConfigEntry) toCreateTopicsRequestV0ConfigEntry() createTopics... type createTopicsRequestV0ConfigEntry (line 93) | type createTopicsRequestV0ConfigEntry struct method size (line 98) | func (t createTopicsRequestV0ConfigEntry) size() int32 { method writeTo (line 103) | func (t createTopicsRequestV0ConfigEntry) writeTo(wb *writeBuffer) { type ReplicaAssignment (line 108) | type ReplicaAssignment struct method partitionIndex (line 121) | func (a *ReplicaAssignment) partitionIndex() int32 { method brokerIDs (line 125) | func (a *ReplicaAssignment) brokerIDs() []int32 { method toCreateTopicsRequestV0ReplicaAssignment (line 136) | func (a ReplicaAssignment) toCreateTopicsRequestV0ReplicaAssignment() ... type createTopicsRequestV0ReplicaAssignment (line 143) | type createTopicsRequestV0ReplicaAssignment struct method size (line 148) | func (t createTopicsRequestV0ReplicaAssignment) size() int32 { method writeTo (line 153) | func (t createTopicsRequestV0ReplicaAssignment) writeTo(wb *writeBuffe... type TopicConfig (line 161) | type TopicConfig struct method assignments (line 179) | func (t *TopicConfig) assignments() []createtopics.RequestAssignment { method configs (line 193) | func (t *TopicConfig) configs() []createtopics.RequestConfig { method toCreateTopicsRequestV0Topic (line 207) | func (t TopicConfig) toCreateTopicsRequestV0Topic() createTopicsReques... type createTopicsRequestV0Topic (line 230) | type createTopicsRequestV0Topic struct method size (line 248) | func (t createTopicsRequestV0Topic) size() int32 { method writeTo (line 256) | func (t createTopicsRequestV0Topic) writeTo(wb *writeBuffer) { type createTopicsRequest (line 265) | type createTopicsRequest struct method size (line 281) | func (t createTopicsRequest) size() int32 { method writeTo (line 290) | func (t createTopicsRequest) writeTo(wb *writeBuffer) { type createTopicsResponseTopicError (line 298) | type createTopicsResponseTopicError struct method size (line 311) | func (t createTopicsResponseTopicError) size() int32 { method writeTo (line 320) | func (t createTopicsResponseTopicError) writeTo(wb *writeBuffer) { method readFrom (line 328) | func (t *createTopicsResponseTopicError) readFrom(r *bufio.Reader, siz... type createTopicsResponse (line 344) | type createTopicsResponse struct method size (line 351) | func (t createTopicsResponse) size() int32 { method writeTo (line 359) | func (t createTopicsResponse) writeTo(wb *writeBuffer) { method readFrom (line 366) | func (t *createTopicsResponse) readFrom(r *bufio.Reader, size int) (re... method createTopics (line 388) | func (c *Conn) createTopics(request createTopicsRequest) (createTopicsRe... method CreateTopics (line 430) | func (c *Conn) CreateTopics(topics ...TopicConfig) error { FILE: createtopics_test.go function TestConnCreateTopics (line 14) | func TestConnCreateTopics(t *testing.T) { function TestClientCreateTopics (line 87) | func TestClientCreateTopics(t *testing.T) { function TestCreateTopicsResponse (line 163) | func TestCreateTopicsResponse(t *testing.T) { FILE: deleteacls.go type DeleteACLsRequest (line 14) | type DeleteACLsRequest struct type DeleteACLsFilter (line 22) | type DeleteACLsFilter struct type DeleteACLsResponse (line 34) | type DeleteACLsResponse struct type DeleteACLsResult (line 42) | type DeleteACLsResult struct type DeleteACLsMatchingACLs (line 47) | type DeleteACLsMatchingACLs struct method DeleteACLs (line 60) | func (c *Client) DeleteACLs(ctx context.Context, req *DeleteACLsRequest)... FILE: deleteacls_test.go function TestClientDeleteACLs (line 11) | func TestClientDeleteACLs(t *testing.T) { FILE: deletegroups.go type DeleteGroupsRequest (line 14) | type DeleteGroupsRequest struct type DeleteGroupsResponse (line 24) | type DeleteGroupsResponse struct method DeleteGroups (line 37) | func (c *Client) DeleteGroups( FILE: deletegroups_test.go function TestClientDeleteGroups (line 12) | func TestClientDeleteGroups(t *testing.T) { FILE: deletetopics.go type DeleteTopicsRequest (line 15) | type DeleteTopicsRequest struct type DeleteTopicsResponse (line 25) | type DeleteTopicsResponse struct method DeleteTopics (line 42) | func (c *Client) DeleteTopics(ctx context.Context, req *DeleteTopicsRequ... type deleteTopicsRequest (line 70) | type deleteTopicsRequest struct method size (line 80) | func (t deleteTopicsRequest) size() int32 { method writeTo (line 85) | func (t deleteTopicsRequest) writeTo(wb *writeBuffer) { type deleteTopicsResponse (line 90) | type deleteTopicsResponse struct method size (line 98) | func (t deleteTopicsResponse) size() int32 { method readFrom (line 106) | func (t *deleteTopicsResponse) readFrom(r *bufio.Reader, size int) (re... method writeTo (line 127) | func (t deleteTopicsResponse) writeTo(wb *writeBuffer) { type deleteTopicsResponseV0TopicErrorCode (line 134) | type deleteTopicsResponseV0TopicErrorCode struct method size (line 142) | func (t deleteTopicsResponseV0TopicErrorCode) size() int32 { method readFrom (line 147) | func (t *deleteTopicsResponseV0TopicErrorCode) readFrom(r *bufio.Reade... method writeTo (line 157) | func (t deleteTopicsResponseV0TopicErrorCode) writeTo(wb *writeBuffer) { method deleteTopics (line 165) | func (c *Conn) deleteTopics(request deleteTopicsRequest) (deleteTopicsRe... FILE: deletetopics_test.go function TestClientDeleteTopics (line 11) | func TestClientDeleteTopics(t *testing.T) { function TestDeleteTopicsResponseV1 (line 31) | func TestDeleteTopicsResponseV1(t *testing.T) { FILE: describeacls.go type DescribeACLsRequest (line 14) | type DescribeACLsRequest struct type ACLFilter (line 22) | type ACLFilter struct type DescribeACLsResponse (line 35) | type DescribeACLsResponse struct type ACLResource (line 47) | type ACLResource struct type ACLDescription (line 54) | type ACLDescription struct method DescribeACLs (line 61) | func (c *Client) DescribeACLs(ctx context.Context, req *DescribeACLsRequ... FILE: describeacls_test.go function TestClientDescribeACLs (line 11) | func TestClientDescribeACLs(t *testing.T) { FILE: describeclientquotas.go type DescribeClientQuotasRequest (line 14) | type DescribeClientQuotasRequest struct type DescribeClientQuotasRequestComponent (line 26) | type DescribeClientQuotasRequestComponent struct type DescribeClientQuotasResponse (line 39) | type DescribeClientQuotasResponse struct type DescribeClientQuotasEntity (line 51) | type DescribeClientQuotasEntity struct type DescribeClientQuotasValue (line 59) | type DescribeClientQuotasValue struct type DescribeClientQuotasResponseQuotas (line 67) | type DescribeClientQuotasResponseQuotas struct method DescribeClientQuotas (line 77) | func (c *Client) DescribeClientQuotas(ctx context.Context, req *Describe... FILE: describeconfigs.go type DescribeConfigsRequest (line 13) | type DescribeConfigsRequest struct type DescribeConfigRequestResource (line 27) | type DescribeConfigRequestResource struct type DescribeConfigsResponse (line 39) | type DescribeConfigsResponse struct type DescribeConfigResponseResource (line 48) | type DescribeConfigResponseResource struct type DescribeConfigResponseConfigEntry (line 63) | type DescribeConfigResponseConfigEntry struct type DescribeConfigResponseConfigSynonym (line 87) | type DescribeConfigResponseConfigSynonym struct method DescribeConfigs (line 100) | func (c *Client) DescribeConfigs(ctx context.Context, req *DescribeConfi... FILE: describeconfigs_test.go function TestClientDescribeConfigs (line 11) | func TestClientDescribeConfigs(t *testing.T) { FILE: describegroups.go type DescribeGroupsRequest (line 14) | type DescribeGroupsRequest struct type DescribeGroupsResponse (line 23) | type DescribeGroupsResponse struct type DescribeGroupsResponseGroup (line 29) | type DescribeGroupsResponseGroup struct type DescribeGroupsResponseMember (line 45) | type DescribeGroupsResponseMember struct type DescribeGroupsResponseMemberMetadata (line 63) | type DescribeGroupsResponseMemberMetadata struct type DescribeGroupsResponseMemberMetadataOwnedPartition (line 78) | type DescribeGroupsResponseMemberMetadataOwnedPartition struct type DescribeGroupsResponseAssignments (line 87) | type DescribeGroupsResponseAssignments struct type GroupMemberTopic (line 100) | type GroupMemberTopic struct method DescribeGroups (line 111) | func (c *Client) DescribeGroups( function decodeMemberMetadata (line 164) | func decodeMemberMetadata(rawMetadata []byte) (DescribeGroupsResponseMem... function decodeMemberAssignments (line 227) | func decodeMemberAssignments(rawAssignments []byte) (DescribeGroupsRespo... function readInt32Array (line 282) | func readInt32Array(r *bufio.Reader, sz int, v *[]int32) (remain int, er... FILE: describegroups_test.go function TestClientDescribeGroups (line 13) | func TestClientDescribeGroups(t *testing.T) { FILE: describeuserscramcredentials.go type DescribeUserScramCredentialsRequest (line 14) | type DescribeUserScramCredentialsRequest struct type UserScramCredentialsUser (line 22) | type UserScramCredentialsUser struct type DescribeUserScramCredentialsResponse (line 28) | type DescribeUserScramCredentialsResponse struct type DescribeUserScramCredentialsResponseResult (line 43) | type DescribeUserScramCredentialsResponseResult struct type DescribeUserScramCredentialsCredentialInfo (line 49) | type DescribeUserScramCredentialsCredentialInfo struct method DescribeUserScramCredentials (line 56) | func (c *Client) DescribeUserScramCredentials(ctx context.Context, req *... FILE: describeuserscramcredentials_test.go function TestDescribeUserScramCredentials (line 12) | func TestDescribeUserScramCredentials(t *testing.T) { FILE: dialer.go type Dialer (line 19) | type Dialer struct method Dial (line 95) | func (d *Dialer) Dial(network string, address string) (*Conn, error) { method DialContext (line 112) | func (d *Dialer) DialContext(ctx context.Context, network string, addr... method DialLeader (line 132) | func (d *Dialer) DialLeader(ctx context.Context, network string, addre... method DialPartition (line 143) | func (d *Dialer) DialPartition(ctx context.Context, network string, ad... method LookupLeader (line 156) | func (d *Dialer) LookupLeader(ctx context.Context, network string, add... method LookupPartition (line 162) | func (d *Dialer) LookupPartition(ctx context.Context, network string, ... method LookupPartitions (line 212) | func (d *Dialer) LookupPartitions(ctx context.Context, network string,... method connectTLS (line 241) | func (d *Dialer) connectTLS(ctx context.Context, conn net.Conn, config... method connect (line 265) | func (d *Dialer) connect(ctx context.Context, network, address string,... method authenticateSASL (line 309) | func (d *Dialer) authenticateSASL(ctx context.Context, conn *Conn) err... method dialContext (line 341) | func (d *Dialer) dialContext(ctx context.Context, network string, addr... function Dial (line 389) | func Dial(network string, address string) (*Conn, error) { function DialContext (line 394) | func DialContext(ctx context.Context, network string, address string) (*... function DialLeader (line 399) | func DialLeader(ctx context.Context, network string, address string, top... function DialPartition (line 404) | func DialPartition(ctx context.Context, network string, address string, ... function LookupPartition (line 409) | func LookupPartition(ctx context.Context, network string, address string... function LookupPartitions (line 414) | func LookupPartitions(ctx context.Context, network string, address strin... function sleep (line 418) | func sleep(ctx context.Context, duration time.Duration) bool { function backoff (line 437) | func backoff(attempt int, min time.Duration, max time.Duration) time.Dur... function canonicalAddress (line 445) | func canonicalAddress(s string) string { function splitHostPort (line 449) | func splitHostPort(s string) (host string, port string) { function splitHostPortNumber (line 458) | func splitHostPortNumber(s string) (host string, portNumber int, err err... function lookupHost (line 467) | func lookupHost(ctx context.Context, address string, resolver Resolver) ... FILE: dialer_test.go function TestDialer (line 17) | func TestDialer(t *testing.T) { function testDialerLookupPartitions (line 39) | func testDialerLookupPartitions(t *testing.T, ctx context.Context, d *Di... function tlsConfig (line 77) | func tlsConfig(t *testing.T) *tls.Config { function TestDialerTLS (line 173) | func TestDialerTLS(t *testing.T) { type MockConn (line 247) | type MockConn struct method Read (line 253) | func (m *MockConn) Read(b []byte) (n int, err error) { method Write (line 263) | func (m *MockConn) Write(b []byte) (n int, err error) { method Close (line 273) | func (m *MockConn) Close() error { method ReadPartitions (line 282) | func (m *MockConn) ReadPartitions(topics ...string) (partitions []Part... function TestDialerConnectTLSHonorsContext (line 286) | func TestDialerConnectTLSHonorsContext(t *testing.T) { function TestDialerResolver (line 306) | func TestDialerResolver(t *testing.T) { type mockResolver (line 397) | type mockResolver struct method LookupHost (line 401) | func (mr *mockResolver) LookupHost(ctx context.Context, host string) (... FILE: discard.go function discardN (line 5) | func discardN(r *bufio.Reader, sz int, n int) (int, error) { function discardInt32 (line 18) | func discardInt32(r *bufio.Reader, sz int) (int, error) { function discardString (line 22) | func discardString(r *bufio.Reader, sz int) (int, error) { function discardBytes (line 31) | func discardBytes(r *bufio.Reader, sz int) (int, error) { FILE: discard_test.go function TestDiscardN (line 11) | func TestDiscardN(t *testing.T) { FILE: electleaders.go type ElectLeadersRequest (line 12) | type ElectLeadersRequest struct type ElectLeadersResponse (line 27) | type ElectLeadersResponse struct type ElectLeadersResponsePartitionResult (line 36) | type ElectLeadersResponsePartitionResult struct method ElectLeaders (line 45) | func (c *Client) ElectLeaders( FILE: electleaders_test.go function TestClientElectLeaders (line 10) | func TestClientElectLeaders(t *testing.T) { FILE: endtxn.go type EndTxnRequest (line 13) | type EndTxnRequest struct type EndTxnResponse (line 31) | type EndTxnResponse struct method EndTxn (line 42) | func (c *Client) EndTxn(ctx context.Context, req *EndTxnRequest) (*EndTx... FILE: error.go type Error (line 12) | type Error method Error (line 125) | func (e Error) Error() string { method Timeout (line 130) | func (e Error) Timeout() bool { method Temporary (line 138) | func (e Error) Temporary() bool { method Title (line 176) | func (e Error) Title() string { method Description (line 387) | func (e Error) Description() string { constant Unknown (line 15) | Unknown Error = -1 constant OffsetOutOfRange (line 16) | OffsetOutOfRange Error = 1 constant InvalidMessage (line 17) | InvalidMessage Error = 2 constant UnknownTopicOrPartition (line 18) | UnknownTopicOrPartition Error = 3 constant InvalidMessageSize (line 19) | InvalidMessageSize Error = 4 constant LeaderNotAvailable (line 20) | LeaderNotAvailable Error = 5 constant NotLeaderForPartition (line 21) | NotLeaderForPartition Error = 6 constant RequestTimedOut (line 22) | RequestTimedOut Error = 7 constant BrokerNotAvailable (line 23) | BrokerNotAvailable Error = 8 constant ReplicaNotAvailable (line 24) | ReplicaNotAvailable Error = 9 constant MessageSizeTooLarge (line 25) | MessageSizeTooLarge Error = 10 constant StaleControllerEpoch (line 26) | StaleControllerEpoch Error = 11 constant OffsetMetadataTooLarge (line 27) | OffsetMetadataTooLarge Error = 12 constant NetworkException (line 28) | NetworkException Error = 13 constant GroupLoadInProgress (line 29) | GroupLoadInProgress Error = 14 constant GroupCoordinatorNotAvailable (line 30) | GroupCoordinatorNotAvailable Error = 15 constant NotCoordinatorForGroup (line 31) | NotCoordinatorForGroup Error = 16 constant InvalidTopic (line 32) | InvalidTopic Error = 17 constant RecordListTooLarge (line 33) | RecordListTooLarge Error = 18 constant NotEnoughReplicas (line 34) | NotEnoughReplicas Error = 19 constant NotEnoughReplicasAfterAppend (line 35) | NotEnoughReplicasAfterAppend Error = 20 constant InvalidRequiredAcks (line 36) | InvalidRequiredAcks Error = 21 constant IllegalGeneration (line 37) | IllegalGeneration Error = 22 constant InconsistentGroupProtocol (line 38) | InconsistentGroupProtocol Error = 23 constant InvalidGroupId (line 39) | InvalidGroupId Error = 24 constant UnknownMemberId (line 40) | UnknownMemberId Error = 25 constant InvalidSessionTimeout (line 41) | InvalidSessionTimeout Error = 26 constant RebalanceInProgress (line 42) | RebalanceInProgress Error = 27 constant InvalidCommitOffsetSize (line 43) | InvalidCommitOffsetSize Error = 28 constant TopicAuthorizationFailed (line 44) | TopicAuthorizationFailed Error = 29 constant GroupAuthorizationFailed (line 45) | GroupAuthorizationFailed Error = 30 constant ClusterAuthorizationFailed (line 46) | ClusterAuthorizationFailed Error = 31 constant InvalidTimestamp (line 47) | InvalidTimestamp Error = 32 constant UnsupportedSASLMechanism (line 48) | UnsupportedSASLMechanism Error = 33 constant IllegalSASLState (line 49) | IllegalSASLState Error = 34 constant UnsupportedVersion (line 50) | UnsupportedVersion Error = 35 constant TopicAlreadyExists (line 51) | TopicAlreadyExists Error = 36 constant InvalidPartitionNumber (line 52) | InvalidPartitionNumber Error = 37 constant InvalidReplicationFactor (line 53) | InvalidReplicationFactor Error = 38 constant InvalidReplicaAssignment (line 54) | InvalidReplicaAssignment Error = 39 constant InvalidConfiguration (line 55) | InvalidConfiguration Error = 40 constant NotController (line 56) | NotController Error = 41 constant InvalidRequest (line 57) | InvalidRequest Error = 42 constant UnsupportedForMessageFormat (line 58) | UnsupportedForMessageFormat Error = 43 constant PolicyViolation (line 59) | PolicyViolation Error = 44 constant OutOfOrderSequenceNumber (line 60) | OutOfOrderSequenceNumber Error = 45 constant DuplicateSequenceNumber (line 61) | DuplicateSequenceNumber Error = 46 constant InvalidProducerEpoch (line 62) | InvalidProducerEpoch Error = 47 constant InvalidTransactionState (line 63) | InvalidTransactionState Error = 48 constant InvalidProducerIDMapping (line 64) | InvalidProducerIDMapping Error = 49 constant InvalidTransactionTimeout (line 65) | InvalidTransactionTimeout Error = 50 constant ConcurrentTransactions (line 66) | ConcurrentTransactions Error = 51 constant TransactionCoordinatorFenced (line 67) | TransactionCoordinatorFenced Error = 52 constant TransactionalIDAuthorizationFailed (line 68) | TransactionalIDAuthorizationFailed Error = 53 constant SecurityDisabled (line 69) | SecurityDisabled Error = 54 constant BrokerAuthorizationFailed (line 70) | BrokerAuthorizationFailed Error = 55 constant KafkaStorageError (line 71) | KafkaStorageError Error = 56 constant LogDirNotFound (line 72) | LogDirNotFound Error = 57 constant SASLAuthenticationFailed (line 73) | SASLAuthenticationFailed Error = 58 constant UnknownProducerId (line 74) | UnknownProducerId Error = 59 constant ReassignmentInProgress (line 75) | ReassignmentInProgress Error = 60 constant DelegationTokenAuthDisabled (line 76) | DelegationTokenAuthDisabled Error = 61 constant DelegationTokenNotFound (line 77) | DelegationTokenNotFound Error = 62 constant DelegationTokenOwnerMismatch (line 78) | DelegationTokenOwnerMismatch Error = 63 constant DelegationTokenRequestNotAllowed (line 79) | DelegationTokenRequestNotAllowed Error = 64 constant DelegationTokenAuthorizationFailed (line 80) | DelegationTokenAuthorizationFailed Error = 65 constant DelegationTokenExpired (line 81) | DelegationTokenExpired Error = 66 constant InvalidPrincipalType (line 82) | InvalidPrincipalType Error = 67 constant NonEmptyGroup (line 83) | NonEmptyGroup Error = 68 constant GroupIdNotFound (line 84) | GroupIdNotFound Error = 69 constant FetchSessionIDNotFound (line 85) | FetchSessionIDNotFound Error = 70 constant InvalidFetchSessionEpoch (line 86) | InvalidFetchSessionEpoch Error = 71 constant ListenerNotFound (line 87) | ListenerNotFound Error = 72 constant TopicDeletionDisabled (line 88) | TopicDeletionDisabled Error = 73 constant FencedLeaderEpoch (line 89) | FencedLeaderEpoch Error = 74 constant UnknownLeaderEpoch (line 90) | UnknownLeaderEpoch Error = 75 constant UnsupportedCompressionType (line 91) | UnsupportedCompressionType Error = 76 constant StaleBrokerEpoch (line 92) | StaleBrokerEpoch Error = 77 constant OffsetNotAvailable (line 93) | OffsetNotAvailable Error = 78 constant MemberIDRequired (line 94) | MemberIDRequired Error = 79 constant PreferredLeaderNotAvailable (line 95) | PreferredLeaderNotAvailable Error = 80 constant GroupMaxSizeReached (line 96) | GroupMaxSizeReached Error = 81 constant FencedInstanceID (line 97) | FencedInstanceID Error = 82 constant EligibleLeadersNotAvailable (line 98) | EligibleLeadersNotAvailable Error = 83 constant ElectionNotNeeded (line 99) | ElectionNotNeeded Error = 84 constant NoReassignmentInProgress (line 100) | NoReassignmentInProgress Error = 85 constant GroupSubscribedToTopic (line 101) | GroupSubscribedToTopic Error = 86 constant InvalidRecord (line 102) | InvalidRecord Error = 87 constant UnstableOffsetCommit (line 103) | UnstableOffsetCommit Error = 88 constant ThrottlingQuotaExceeded (line 104) | ThrottlingQuotaExceeded Error = 89 constant ProducerFenced (line 105) | ProducerFenced Error = 90 constant ResourceNotFound (line 106) | ResourceNotFound Error = 91 constant DuplicateResource (line 107) | DuplicateResource Error = 92 constant UnacceptableCredential (line 108) | UnacceptableCredential Error = 93 constant InconsistentVoterSet (line 109) | InconsistentVoterSet Error = 94 constant InvalidUpdateVersion (line 110) | InvalidUpdateVersion Error = 95 constant FeatureUpdateFailed (line 111) | FeatureUpdateFailed Error = 96 constant PrincipalDeserializationFailure (line 112) | PrincipalDeserializationFailure Error = 97 constant SnapshotNotFound (line 113) | SnapshotNotFound Error = 98 constant PositionOutOfRange (line 114) | PositionOutOfRange Error = 99 constant UnknownTopicID (line 115) | UnknownTopicID Error = 100 constant DuplicateBrokerRegistration (line 116) | DuplicateBrokerRegistration Error = 101 constant BrokerIDNotRegistered (line 117) | BrokerIDNotRegistered Error = 102 constant InconsistentTopicID (line 118) | InconsistentTopicID Error = 103 constant InconsistentClusterID (line 119) | InconsistentClusterID Error = 104 constant TransactionalIDNotFound (line 120) | TransactionalIDNotFound Error = 105 constant FetchSessionTopicIDError (line 121) | FetchSessionTopicIDError Error = 106 function isTimeout (line 597) | func isTimeout(err error) bool { function isTemporary (line 605) | func isTemporary(err error) bool { function isTransientNetworkError (line 613) | func isTransientNetworkError(err error) bool { function silentEOF (line 620) | func silentEOF(err error) error { function dontExpectEOF (line 627) | func dontExpectEOF(err error) error { function coalesceErrors (line 634) | func coalesceErrors(errs ...error) error { type MessageTooLargeError (line 644) | type MessageTooLargeError struct method Error (line 659) | func (e MessageTooLargeError) Error() string { method Unwrap (line 663) | func (e MessageTooLargeError) Unwrap() error { function messageTooLarge (line 649) | func messageTooLarge(msgs []Message, i int) MessageTooLargeError { function makeError (line 667) | func makeError(code int16, message string) error { type WriteErrors (line 696) | type WriteErrors method Count (line 699) | func (err WriteErrors) Count() int { method Error (line 711) | func (err WriteErrors) Error() string { FILE: error_test.go function TestError (line 10) | func TestError(t *testing.T) { FILE: example_consumergroup_test.go function ExampleGeneration_Start_consumerGroupParallelReaders (line 12) | func ExampleGeneration_Start_consumerGroupParallelReaders() { function ExampleGeneration_CommitOffsets_overwriteOffsets (line 66) | func ExampleGeneration_CommitOffsets_overwriteOffsets() { FILE: example_groupbalancer_test.go function ExampleNewReader_rackAffinity (line 17) | func ExampleNewReader_rackAffinity() { function findRack (line 37) | func findRack() string { constant ecsContainerMetadataURI (line 47) | ecsContainerMetadataURI = "ECS_CONTAINER_METADATA_URI" function whereAmI (line 50) | func whereAmI() string { function ecsAvailabilityZone (line 76) | func ecsAvailabilityZone() string { function ec2AvailabilityZone (line 103) | func ec2AvailabilityZone() string { FILE: example_writer_test.go function ExampleWriter (line 9) | func ExampleWriter() { FILE: examples/consumer-logger/main.go function getKafkaReader (line 13) | func getKafkaReader(kafkaURL, topic, groupID string) *kafka.Reader { function main (line 24) | func main() { FILE: examples/consumer-mongo-db/main.go function getMongoCollection (line 13) | func getMongoCollection(mongoURL, dbName, collectionName string) *mongo.... function getKafkaReader (line 32) | func getKafkaReader(kafkaURL, topic, groupID string) *kafka.Reader { function main (line 42) | func main() { FILE: examples/producer-api/main.go function producerHandler (line 13) | func producerHandler(kafkaWriter *kafka.Writer) func(http.ResponseWriter... function getKafkaWriter (line 32) | func getKafkaWriter(kafkaURL, topic string) *kafka.Writer { function main (line 40) | func main() { FILE: examples/producer-random/main.go function newKafkaWriter (line 13) | func newKafkaWriter(kafkaURL, topic string) *kafka.Writer { function main (line 21) | func main() { FILE: fetch.go type FetchRequest (line 16) | type FetchRequest struct method maxWait (line 186) | func (req *FetchRequest) maxWait() time.Duration { type FetchResponse (line 43) | type FetchResponse struct method Fetch (line 88) | func (c *Client) Fetch(ctx context.Context, req *FetchRequest) (*FetchRe... type fetchRequestV2 (line 193) | type fetchRequestV2 struct method size (line 200) | func (r fetchRequestV2) size() int32 { method writeTo (line 204) | func (r fetchRequestV2) writeTo(wb *writeBuffer) { type fetchRequestTopicV2 (line 211) | type fetchRequestTopicV2 struct method size (line 216) | func (t fetchRequestTopicV2) size() int32 { method writeTo (line 221) | func (t fetchRequestTopicV2) writeTo(wb *writeBuffer) { type fetchRequestPartitionV2 (line 226) | type fetchRequestPartitionV2 struct method size (line 232) | func (p fetchRequestPartitionV2) size() int32 { method writeTo (line 236) | func (p fetchRequestPartitionV2) writeTo(wb *writeBuffer) { type fetchResponseV2 (line 242) | type fetchResponseV2 struct method size (line 247) | func (r fetchResponseV2) size() int32 { method writeTo (line 251) | func (r fetchResponseV2) writeTo(wb *writeBuffer) { type fetchResponseTopicV2 (line 256) | type fetchResponseTopicV2 struct method size (line 261) | func (t fetchResponseTopicV2) size() int32 { method writeTo (line 266) | func (t fetchResponseTopicV2) writeTo(wb *writeBuffer) { type fetchResponsePartitionV2 (line 271) | type fetchResponsePartitionV2 struct method size (line 279) | func (p fetchResponsePartitionV2) size() int32 { method writeTo (line 283) | func (p fetchResponsePartitionV2) writeTo(wb *writeBuffer) { FILE: fetch_test.go function produceRecords (line 16) | func produceRecords(t *testing.T, n int, addr net.Addr, topic string, co... function TestClientFetch (line 49) | func TestClientFetch(t *testing.T) { function TestClientFetchCompressed (line 76) | func TestClientFetchCompressed(t *testing.T) { function assertFetchResponse (line 103) | func assertFetchResponse(t *testing.T, found, expected *FetchResponse) { type memoryRecord (line 135) | type memoryRecord struct function assertRecords (line 142) | func assertRecords(t *testing.T, found, expected []memoryRecord) { function readRecords (line 170) | func readRecords(records RecordReader) ([]memoryRecord, error) { function TestClientPipeline (line 209) | func TestClientPipeline(t *testing.T) { FILE: findcoordinator.go type CoordinatorKeyType (line 14) | type CoordinatorKeyType constant CoordinatorKeyTypeConsumer (line 18) | CoordinatorKeyTypeConsumer CoordinatorKeyType = 0 constant CoordinatorKeyTypeTransaction (line 21) | CoordinatorKeyTypeTransaction CoordinatorKeyType = 1 type FindCoordinatorRequest (line 25) | type FindCoordinatorRequest struct type FindCoordinatorResponseCoordinator (line 37) | type FindCoordinatorResponseCoordinator struct type FindCoordinatorResponse (line 49) | type FindCoordinatorResponse struct method FindCoordinator (line 65) | func (c *Client) FindCoordinator(ctx context.Context, req *FindCoordinat... type findCoordinatorRequestV0 (line 94) | type findCoordinatorRequestV0 struct method size (line 100) | func (t findCoordinatorRequestV0) size() int32 { method writeTo (line 104) | func (t findCoordinatorRequestV0) writeTo(wb *writeBuffer) { type findCoordinatorResponseCoordinatorV0 (line 108) | type findCoordinatorResponseCoordinatorV0 struct method size (line 119) | func (t findCoordinatorResponseCoordinatorV0) size() int32 { method writeTo (line 125) | func (t findCoordinatorResponseCoordinatorV0) writeTo(wb *writeBuffer) { method readFrom (line 131) | func (t *findCoordinatorResponseCoordinatorV0) readFrom(r *bufio.Reade... type findCoordinatorResponseV0 (line 144) | type findCoordinatorResponseV0 struct method size (line 152) | func (t findCoordinatorResponseV0) size() int32 { method writeTo (line 157) | func (t findCoordinatorResponseV0) writeTo(wb *writeBuffer) { method readFrom (line 162) | func (t *findCoordinatorResponseV0) readFrom(r *bufio.Reader, size int... FILE: findcoordinator_test.go function TestFindCoordinatorResponseV0 (line 14) | func TestFindCoordinatorResponseV0(t *testing.T) { function TestClientFindCoordinator (line 44) | func TestClientFindCoordinator(t *testing.T) { function waitForCoordinatorIndefinitely (line 65) | func waitForCoordinatorIndefinitely(ctx context.Context, c *Client, req ... function shouldRetryfindingCoordinator (line 77) | func shouldRetryfindingCoordinator(resp *FindCoordinatorResponse, err er... FILE: groupbalancer.go type GroupMember (line 8) | type GroupMember struct type GroupMemberAssignments (line 21) | type GroupMemberAssignments type GroupBalancer (line 24) | type GroupBalancer interface type RangeGroupBalancer (line 52) | type RangeGroupBalancer struct method ProtocolName (line 54) | func (r RangeGroupBalancer) ProtocolName() string { method UserData (line 58) | func (r RangeGroupBalancer) UserData() ([]byte, error) { method AssignGroups (line 62) | func (r RangeGroupBalancer) AssignGroups(members []GroupMember, topicP... type RoundRobinGroupBalancer (line 103) | type RoundRobinGroupBalancer struct method ProtocolName (line 105) | func (r RoundRobinGroupBalancer) ProtocolName() string { method UserData (line 109) | func (r RoundRobinGroupBalancer) UserData() ([]byte, error) { method AssignGroups (line 113) | func (r RoundRobinGroupBalancer) AssignGroups(members []GroupMember, t... type RackAffinityGroupBalancer (line 153) | type RackAffinityGroupBalancer struct method ProtocolName (line 160) | func (r RackAffinityGroupBalancer) ProtocolName() string { method AssignGroups (line 164) | func (r RackAffinityGroupBalancer) AssignGroups(members []GroupMember,... method UserData (line 192) | func (r RackAffinityGroupBalancer) UserData() ([]byte, error) { method assignTopic (line 196) | func (r *RackAffinityGroupBalancer) assignTopic(members []GroupMember,... function findPartitions (line 290) | func findPartitions(topic string, partitions []Partition) []int { function findMembersByTopic (line 301) | func findMembersByTopic(members []GroupMember) map[string][]GroupMember { function findGroupBalancer (line 332) | func findGroupBalancer(protocolName string, balancers []GroupBalancer) (... FILE: groupbalancer_test.go function TestFindMembersByTopic (line 11) | func TestFindMembersByTopic(t *testing.T) { function TestRangeAssignGroups (line 78) | func TestRangeAssignGroups(t *testing.T) { function TestRangeAssignGroupsUnbalanced (line 198) | func TestRangeAssignGroupsUnbalanced(t *testing.T) { function TestRoundRobinAssignGroups (line 226) | func TestRoundRobinAssignGroups(t *testing.T) { function TestFindMembersByTopicSortsByMemberID (line 339) | func TestFindMembersByTopicSortsByMemberID(t *testing.T) { function TestRackAffinityGroupBalancer (line 379) | func TestRackAffinityGroupBalancer(t *testing.T) { FILE: gzip/gzip.go constant Code (line 12) | Code = 1 constant DefaultCompressionLevel (line 13) | DefaultCompressionLevel = gz.DefaultCompression function NewCompressionCodec (line 18) | func NewCompressionCodec() *CompressionCodec { function NewCompressionCodecLevel (line 22) | func NewCompressionCodecLevel(level int) *CompressionCodec { FILE: heartbeat.go type HeartbeatRequest (line 14) | type HeartbeatRequest struct type HeartbeatResponse (line 32) | type HeartbeatResponse struct type heartbeatRequestV0 (line 43) | type heartbeatRequestV0 struct method size (line 79) | func (t heartbeatRequestV0) size() int32 { method writeTo (line 85) | func (t heartbeatRequestV0) writeTo(wb *writeBuffer) { method Heartbeat (line 55) | func (c *Client) Heartbeat(ctx context.Context, req *HeartbeatRequest) (... type heartbeatResponseV0 (line 91) | type heartbeatResponseV0 struct method size (line 96) | func (t heartbeatResponseV0) size() int32 { method writeTo (line 100) | func (t heartbeatResponseV0) writeTo(wb *writeBuffer) { method readFrom (line 104) | func (t *heartbeatResponseV0) readFrom(r *bufio.Reader, sz int) (remai... FILE: heartbeat_test.go function TestClientHeartbeat (line 14) | func TestClientHeartbeat(t *testing.T) { function TestHeartbeatRequestV0 (line 59) | func TestHeartbeatRequestV0(t *testing.T) { FILE: incrementalalterconfigs.go type ConfigOperation (line 10) | type ConfigOperation constant ConfigOperationSet (line 13) | ConfigOperationSet ConfigOperation = 0 constant ConfigOperationDelete (line 14) | ConfigOperationDelete ConfigOperation = 1 constant ConfigOperationAppend (line 15) | ConfigOperationAppend ConfigOperation = 2 constant ConfigOperationSubtract (line 16) | ConfigOperationSubtract ConfigOperation = 3 type IncrementalAlterConfigsRequest (line 20) | type IncrementalAlterConfigsRequest struct type IncrementalAlterConfigsRequestResource (line 34) | type IncrementalAlterConfigsRequestResource struct type IncrementalAlterConfigsRequestConfig (line 47) | type IncrementalAlterConfigsRequestConfig struct type IncrementalAlterConfigsResponse (line 59) | type IncrementalAlterConfigsResponse struct type IncrementalAlterConfigsResponseResource (line 66) | type IncrementalAlterConfigsResponseResource struct method IncrementalAlterConfigs (line 78) | func (c *Client) IncrementalAlterConfigs( FILE: incrementalalterconfigs_test.go function TestClientIncrementalAlterConfigs (line 11) | func TestClientIncrementalAlterConfigs(t *testing.T) { FILE: initproducerid.go type InitProducerIDRequest (line 13) | type InitProducerIDRequest struct type ProducerSession (line 36) | type ProducerSession struct type InitProducerIDResponse (line 45) | type InitProducerIDResponse struct method InitProducerID (line 61) | func (c *Client) InitProducerID(ctx context.Context, req *InitProducerID... FILE: initproducerid_test.go function TestClientInitProducerId (line 14) | func TestClientInitProducerId(t *testing.T) { FILE: joingroup.go type JoinGroupRequest (line 17) | type JoinGroupRequest struct type GroupProtocol (line 45) | type GroupProtocol struct type GroupProtocolSubscription (line 53) | type GroupProtocolSubscription struct type JoinGroupResponse (line 65) | type JoinGroupResponse struct type JoinGroupResponseMember (line 95) | type JoinGroupResponseMember struct method JoinGroup (line 107) | func (c *Client) JoinGroup(ctx context.Context, req *JoinGroupRequest) (... type groupMetadata (line 192) | type groupMetadata struct method size (line 198) | func (t groupMetadata) size() int32 { method writeTo (line 204) | func (t groupMetadata) writeTo(wb *writeBuffer) { method bytes (line 210) | func (t groupMetadata) bytes() []byte { method readFrom (line 216) | func (t *groupMetadata) readFrom(r *bufio.Reader, size int) (remain in... type joinGroupRequestGroupProtocolV1 (line 229) | type joinGroupRequestGroupProtocolV1 struct method size (line 234) | func (t joinGroupRequestGroupProtocolV1) size() int32 { method writeTo (line 239) | func (t joinGroupRequestGroupProtocolV1) writeTo(wb *writeBuffer) { type joinGroupRequest (line 244) | type joinGroupRequest struct method size (line 267) | func (t joinGroupRequest) size() int32 { method writeTo (line 276) | func (t joinGroupRequest) writeTo(wb *writeBuffer) { type joinGroupResponseMember (line 285) | type joinGroupResponseMember struct method size (line 291) | func (t joinGroupResponseMember) size() int32 { method writeTo (line 296) | func (t joinGroupResponseMember) writeTo(wb *writeBuffer) { method readFrom (line 301) | func (t *joinGroupResponseMember) readFrom(r *bufio.Reader, size int) ... type joinGroupResponse (line 311) | type joinGroupResponse struct method size (line 333) | func (t joinGroupResponse) size() int32 { method writeTo (line 346) | func (t joinGroupResponse) writeTo(wb *writeBuffer) { method readFrom (line 358) | func (t *joinGroupResponse) readFrom(r *bufio.Reader, size int) (remai... FILE: joingroup_test.go function TestClientJoinGroup (line 15) | func TestClientJoinGroup(t *testing.T) { function TestSaramaCompatibility (line 127) | func TestSaramaCompatibility(t *testing.T) { function TestMemberMetadata (line 193) | func TestMemberMetadata(t *testing.T) { function TestJoinGroupResponse (line 220) | func TestJoinGroupResponse(t *testing.T) { FILE: kafka.go type Broker (line 6) | type Broker struct type Topic (line 14) | type Topic struct type Partition (line 34) | type Partition struct function Marshal (line 74) | func Marshal(v interface{}) ([]byte, error) { function Unmarshal (line 81) | func Unmarshal(b []byte, v interface{}) error { type Version (line 86) | type Version method Marshal (line 91) | func (n Version) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 98) | func (n Version) Unmarshal(b []byte, v interface{}) error { FILE: kafka_test.go function TestMarshalUnmarshal (line 11) | func TestMarshalUnmarshal(t *testing.T) { function TestVersionMarshalUnmarshal (line 75) | func TestVersionMarshalUnmarshal(t *testing.T) { type Struct (line 120) | type Struct struct function BenchmarkMarshal (line 138) | func BenchmarkMarshal(b *testing.B) { function BenchmarkUnmarshal (line 151) | func BenchmarkUnmarshal(b *testing.B) { type testKafkaLogger (line 175) | type testKafkaLogger struct method Printf (line 184) | func (l *testKafkaLogger) Printf(msg string, args ...interface{}) { function newTestKafkaLogger (line 180) | func newTestKafkaLogger(t *testing.T, prefix string) Logger { FILE: leavegroup.go type LeaveGroupRequest (line 14) | type LeaveGroupRequest struct type LeaveGroupRequestMember (line 26) | type LeaveGroupRequestMember struct type LeaveGroupResponse (line 35) | type LeaveGroupResponse struct type LeaveGroupResponseMember (line 50) | type LeaveGroupResponseMember struct method LeaveGroup (line 64) | func (c *Client) LeaveGroup(ctx context.Context, req *LeaveGroupRequest)... type leaveGroupRequestV0 (line 113) | type leaveGroupRequestV0 struct method size (line 122) | func (t leaveGroupRequestV0) size() int32 { method writeTo (line 126) | func (t leaveGroupRequestV0) writeTo(wb *writeBuffer) { type leaveGroupResponseV0 (line 131) | type leaveGroupResponseV0 struct method size (line 136) | func (t leaveGroupResponseV0) size() int32 { method writeTo (line 140) | func (t leaveGroupResponseV0) writeTo(wb *writeBuffer) { method readFrom (line 144) | func (t *leaveGroupResponseV0) readFrom(r *bufio.Reader, size int) (re... FILE: leavegroup_test.go function TestClientLeaveGroup (line 13) | func TestClientLeaveGroup(t *testing.T) { function TestLeaveGroupResponseV0 (line 193) | func TestLeaveGroupResponseV0(t *testing.T) { FILE: listgroups.go type ListGroupsRequest (line 12) | type ListGroupsRequest struct type ListGroupsResponse (line 18) | type ListGroupsResponse struct type ListGroupsResponseGroup (line 28) | type ListGroupsResponseGroup struct method ListGroups (line 39) | func (c *Client) ListGroups( type listGroupsRequestV1 (line 64) | type listGroupsRequestV1 struct method size (line 67) | func (t listGroupsRequestV1) size() int32 { method writeTo (line 71) | func (t listGroupsRequestV1) writeTo(wb *writeBuffer) { type listGroupsResponseGroupV1 (line 74) | type listGroupsResponseGroupV1 struct method size (line 80) | func (t listGroupsResponseGroupV1) size() int32 { method writeTo (line 84) | func (t listGroupsResponseGroupV1) writeTo(wb *writeBuffer) { method readFrom (line 89) | func (t *listGroupsResponseGroupV1) readFrom(r *bufio.Reader, size int... type listGroupsResponseV1 (line 99) | type listGroupsResponseV1 struct method size (line 110) | func (t listGroupsResponseV1) size() int32 { method writeTo (line 116) | func (t listGroupsResponseV1) writeTo(wb *writeBuffer) { method readFrom (line 122) | func (t *listGroupsResponseV1) readFrom(r *bufio.Reader, size int) (re... FILE: listgroups_test.go function TestListGroupsResponseV1 (line 13) | func TestListGroupsResponseV1(t *testing.T) { function TestClientListGroups (line 44) | func TestClientListGroups(t *testing.T) { FILE: listoffset.go type OffsetRequest (line 14) | type OffsetRequest struct function FirstOffsetOf (line 21) | func FirstOffsetOf(partition int) OffsetRequest { function LastOffsetOf (line 27) | func LastOffsetOf(partition int) OffsetRequest { function TimeOffsetOf (line 33) | func TimeOffsetOf(partition int, at time.Time) OffsetRequest { type PartitionOffsets (line 39) | type PartitionOffsets struct type ListOffsetsRequest (line 49) | type ListOffsetsRequest struct type ListOffsetsResponse (line 68) | type ListOffsetsResponse struct method ListOffsets (line 79) | func (c *Client) ListOffsets(ctx context.Context, req *ListOffsetsReques... type listOffsetRequestV1 (line 186) | type listOffsetRequestV1 struct method size (line 191) | func (r listOffsetRequestV1) size() int32 { method writeTo (line 195) | func (r listOffsetRequestV1) writeTo(wb *writeBuffer) { type listOffsetRequestTopicV1 (line 200) | type listOffsetRequestTopicV1 struct method size (line 205) | func (t listOffsetRequestTopicV1) size() int32 { method writeTo (line 210) | func (t listOffsetRequestTopicV1) writeTo(wb *writeBuffer) { type listOffsetRequestPartitionV1 (line 215) | type listOffsetRequestPartitionV1 struct method size (line 220) | func (p listOffsetRequestPartitionV1) size() int32 { method writeTo (line 224) | func (p listOffsetRequestPartitionV1) writeTo(wb *writeBuffer) { type listOffsetResponseV1 (line 229) | type listOffsetResponseV1 method size (line 231) | func (r listOffsetResponseV1) size() int32 { method writeTo (line 235) | func (r listOffsetResponseV1) writeTo(wb *writeBuffer) { type listOffsetResponseTopicV1 (line 239) | type listOffsetResponseTopicV1 struct method size (line 244) | func (t listOffsetResponseTopicV1) size() int32 { method writeTo (line 249) | func (t listOffsetResponseTopicV1) writeTo(wb *writeBuffer) { type partitionOffsetV1 (line 254) | type partitionOffsetV1 struct method size (line 261) | func (p partitionOffsetV1) size() int32 { method writeTo (line 265) | func (p partitionOffsetV1) writeTo(wb *writeBuffer) { method readFrom (line 272) | func (p *partitionOffsetV1) readFrom(r *bufio.Reader, sz int) (remain ... FILE: listoffset_test.go function TestClientListOffsets (line 9) | func TestClientListOffsets(t *testing.T) { FILE: listpartitionreassignments.go type ListPartitionReassignmentsRequest (line 12) | type ListPartitionReassignmentsRequest struct type ListPartitionReassignmentsRequestTopic (line 25) | type ListPartitionReassignmentsRequestTopic struct type ListPartitionReassignmentsResponse (line 31) | type ListPartitionReassignmentsResponse struct type ListPartitionReassignmentsResponseTopic (line 42) | type ListPartitionReassignmentsResponseTopic struct type ListPartitionReassignmentsResponsePartition (line 49) | type ListPartitionReassignmentsResponsePartition struct method ListPartitionReassignments (line 63) | func (c *Client) ListPartitionReassignments( function intToInt32Array (line 115) | func intToInt32Array(arr []int) []int32 { function int32ToIntArray (line 126) | func int32ToIntArray(arr []int32) []int { FILE: listpartitionreassignments_test.go function TestClientListPartitionReassignments (line 10) | func TestClientListPartitionReassignments(t *testing.T) { FILE: logger.go type Logger (line 4) | type Logger interface type LoggerFunc (line 15) | type LoggerFunc method Printf (line 17) | func (f LoggerFunc) Printf(msg string, args ...interface{}) { f(msg, a... FILE: lz4/lz4.go constant Code (line 9) | Code = 3 function NewCompressionCodec (line 14) | func NewCompressionCodec() *CompressionCodec { FILE: message.go type Message (line 8) | type Message struct method message (line 33) | func (msg Message) message(cw *crc32Writer) message { method size (line 48) | func (msg *Message) size() int32 { method headerSize (line 52) | func (msg *Message) headerSize() int { method totalSize (line 59) | func (msg *Message) totalSize() int32 { constant timestampSize (line 46) | timestampSize = 8 type message (line 63) | type message struct method crc32 (line 72) | func (m message) crc32(cw *crc32Writer) int32 { method size (line 84) | func (m message) size() int32 { method writeTo (line 92) | func (m message) writeTo(wb *writeBuffer) { type messageSetItem (line 103) | type messageSetItem struct method size (line 109) | func (m messageSetItem) size() int32 { method writeTo (line 113) | func (m messageSetItem) writeTo(wb *writeBuffer) { type messageSet (line 119) | type messageSet method size (line 121) | func (s messageSet) size() (size int32) { method writeTo (line 128) | func (s messageSet) writeTo(wb *writeBuffer) { FILE: message_reader.go type readBytesFunc (line 11) | type readBytesFunc type messageSetReader (line 16) | type messageSetReader struct method remaining (line 96) | func (r *messageSetReader) remaining() (remain int) { method discard (line 106) | func (r *messageSetReader) discard() (err error) { method readMessage (line 122) | func (r *messageSetReader) readMessage(min int64, key readBytesFunc, v... method readMessageV1 (line 145) | func (r *messageSetReader) readMessageV1(min int64, key readBytesFunc,... method readMessageV2 (line 252) | func (r *messageSetReader) readMessageV2(_ int64, key readBytesFunc, v... method discardBytes (line 341) | func (r *messageSetReader) discardBytes() (err error) { method discardN (line 346) | func (r *messageSetReader) discardN(sz int) (err error) { method markRead (line 351) | func (r *messageSetReader) markRead() { method unwindStack (line 362) | func (r *messageSetReader) unwindStack() { method readMessageHeader (line 377) | func (r *messageSetReader) readMessageHeader(header *Header) (err erro... method runFunc (line 395) | func (r *messageSetReader) runFunc(rbFunc readBytesFunc) (err error) { method readHeader (line 406) | func (r *messageSetReader) readHeader() (err error) { method readNewBytes (line 495) | func (r *messageSetReader) readNewBytes(len int) (res []byte, err erro... method readNewString (line 500) | func (r *messageSetReader) readNewString(len int) (res string, err err... method readInt8 (line 505) | func (r *messageSetReader) readInt8(val *int8) (err error) { method readInt16 (line 510) | func (r *messageSetReader) readInt16(val *int16) (err error) { method readInt32 (line 515) | func (r *messageSetReader) readInt32(val *int32) (err error) { method readInt64 (line 520) | func (r *messageSetReader) readInt64(val *int64) (err error) { method readVarInt (line 525) | func (r *messageSetReader) readVarInt(val *int64) (err error) { method readBytesWith (line 530) | func (r *messageSetReader) readBytesWith(fn readBytesFunc) (err error) { method log (line 535) | func (r *messageSetReader) log(msg string, args ...interface{}) { type readerStack (line 28) | type readerStack struct type messagesHeader (line 38) | type messagesHeader struct method compression (line 62) | func (h messagesHeader) compression() (codec CompressionCodec, err err... method badMagic (line 80) | func (h messagesHeader) badMagic() error { function newMessageSetReader (line 84) | func newMessageSetReader(reader *bufio.Reader, remain int) (*messageSetR... function extractOffset (line 539) | func extractOffset(base int64, msgSet []byte) (offset int64, err error) { FILE: message_test.go function TestV1BatchOffsets (line 25) | func TestV1BatchOffsets(t *testing.T) { function TestMessageSetReader (line 239) | func TestMessageSetReader(t *testing.T) { function TestMessageSetReaderEmpty (line 538) | func TestMessageSetReaderEmpty(t *testing.T) { function TestMessageFixtures (line 568) | func TestMessageFixtures(t *testing.T) { function TestMessageSize (line 679) | func TestMessageSize(t *testing.T) { function randate (line 699) | func randate() time.Time { type readerHelper (line 710) | type readerHelper struct method readMessageErr (line 730) | func (r *readerHelper) readMessageErr() (msg Message, err error) { method readMessage (line 751) | func (r *readerHelper) readMessage() (msg Message) { function newReaderHelper (line 716) | func newReaderHelper(t *testing.T, bs []byte) (r *readerHelper, err erro... FILE: metadata.go type MetadataRequest (line 14) | type MetadataRequest struct type MetadataResponse (line 24) | type MetadataResponse struct method Metadata (line 42) | func (c *Client) Metadata(ctx context.Context, req *MetadataRequest) (*M... type topicMetadataRequestV1 (line 110) | type topicMetadataRequestV1 method size (line 112) | func (r topicMetadataRequestV1) size() int32 { method writeTo (line 116) | func (r topicMetadataRequestV1) writeTo(wb *writeBuffer) { type metadataResponseV1 (line 127) | type metadataResponseV1 struct method size (line 133) | func (r metadataResponseV1) size() int32 { method writeTo (line 139) | func (r metadataResponseV1) writeTo(wb *writeBuffer) { type brokerMetadataV1 (line 145) | type brokerMetadataV1 struct method size (line 152) | func (b brokerMetadataV1) size() int32 { method writeTo (line 156) | func (b brokerMetadataV1) writeTo(wb *writeBuffer) { type topicMetadataV1 (line 163) | type topicMetadataV1 struct method size (line 170) | func (t topicMetadataV1) size() int32 { method writeTo (line 176) | func (t topicMetadataV1) writeTo(wb *writeBuffer) { type partitionMetadataV1 (line 183) | type partitionMetadataV1 struct method size (line 191) | func (p partitionMetadataV1) size() int32 { method writeTo (line 195) | func (p partitionMetadataV1) writeTo(wb *writeBuffer) { type topicMetadataRequestV6 (line 203) | type topicMetadataRequestV6 struct method size (line 208) | func (r topicMetadataRequestV6) size() int32 { method writeTo (line 212) | func (r topicMetadataRequestV6) writeTo(wb *writeBuffer) { type metadataResponseV6 (line 224) | type metadataResponseV6 struct method size (line 232) | func (r metadataResponseV6) size() int32 { method writeTo (line 239) | func (r metadataResponseV6) writeTo(wb *writeBuffer) { type topicMetadataV6 (line 247) | type topicMetadataV6 struct method size (line 254) | func (t topicMetadataV6) size() int32 { method writeTo (line 260) | func (t topicMetadataV6) writeTo(wb *writeBuffer) { type partitionMetadataV6 (line 267) | type partitionMetadataV6 struct method size (line 276) | func (p partitionMetadataV6) size() int32 { method writeTo (line 280) | func (p partitionMetadataV6) writeTo(wb *writeBuffer) { FILE: metadata_test.go function TestClientMetadata (line 8) | func TestClientMetadata(t *testing.T) { FILE: offsetcommit.go type OffsetCommit (line 18) | type OffsetCommit struct type OffsetCommitRequest (line 26) | type OffsetCommitRequest struct type OffsetCommitResponse (line 51) | type OffsetCommitResponse struct type OffsetCommitPartition (line 62) | type OffsetCommitPartition struct method OffsetCommit (line 77) | func (c *Client) OffsetCommit(ctx context.Context, req *OffsetCommitRequ... type offsetCommitRequestV2Partition (line 140) | type offsetCommitRequestV2Partition struct method size (line 151) | func (t offsetCommitRequestV2Partition) size() int32 { method writeTo (line 157) | func (t offsetCommitRequestV2Partition) writeTo(wb *writeBuffer) { type offsetCommitRequestV2Topic (line 163) | type offsetCommitRequestV2Topic struct method size (line 171) | func (t offsetCommitRequestV2Topic) size() int32 { method writeTo (line 176) | func (t offsetCommitRequestV2Topic) writeTo(wb *writeBuffer) { type offsetCommitRequestV2 (line 181) | type offsetCommitRequestV2 struct method size (line 198) | func (t offsetCommitRequestV2) size() int32 { method writeTo (line 206) | func (t offsetCommitRequestV2) writeTo(wb *writeBuffer) { type offsetCommitResponseV2PartitionResponse (line 214) | type offsetCommitResponseV2PartitionResponse struct method size (line 221) | func (t offsetCommitResponseV2PartitionResponse) size() int32 { method writeTo (line 226) | func (t offsetCommitResponseV2PartitionResponse) writeTo(wb *writeBuff... method readFrom (line 231) | func (t *offsetCommitResponseV2PartitionResponse) readFrom(r *bufio.Re... type offsetCommitResponseV2Response (line 241) | type offsetCommitResponseV2Response struct method size (line 246) | func (t offsetCommitResponseV2Response) size() int32 { method writeTo (line 251) | func (t offsetCommitResponseV2Response) writeTo(wb *writeBuffer) { method readFrom (line 256) | func (t *offsetCommitResponseV2Response) readFrom(r *bufio.Reader, siz... type offsetCommitResponseV2 (line 276) | type offsetCommitResponseV2 struct method size (line 280) | func (t offsetCommitResponseV2) size() int32 { method writeTo (line 284) | func (t offsetCommitResponseV2) writeTo(wb *writeBuffer) { method readFrom (line 288) | func (t *offsetCommitResponseV2) readFrom(r *bufio.Reader, size int) (... FILE: offsetcommit_test.go function TestOffsetCommitResponseV2 (line 15) | func TestOffsetCommitResponseV2(t *testing.T) { function TestClientOffsetCommit (line 50) | func TestClientOffsetCommit(t *testing.T) { FILE: offsetdelete.go type OffsetDelete (line 14) | type OffsetDelete struct type OffsetDeleteRequest (line 21) | type OffsetDeleteRequest struct type OffsetDeleteResponse (line 34) | type OffsetDeleteResponse struct type OffsetDeletePartition (line 48) | type OffsetDeletePartition struct method OffsetDelete (line 59) | func (c *Client) OffsetDelete(ctx context.Context, req *OffsetDeleteRequ... FILE: offsetdelete_test.go function TestClientDeleteOffset (line 14) | func TestClientDeleteOffset(t *testing.T) { FILE: offsetfetch.go type OffsetFetchRequest (line 15) | type OffsetFetchRequest struct type OffsetFetchResponse (line 28) | type OffsetFetchResponse struct type OffsetFetchPartition (line 46) | type OffsetFetchPartition struct method OffsetFetch (line 68) | func (c *Client) OffsetFetch(ctx context.Context, req *OffsetFetchReques... type offsetFetchRequestV1Topic (line 127) | type offsetFetchRequestV1Topic struct method size (line 135) | func (t offsetFetchRequestV1Topic) size() int32 { method writeTo (line 140) | func (t offsetFetchRequestV1Topic) writeTo(wb *writeBuffer) { type offsetFetchRequestV1 (line 145) | type offsetFetchRequestV1 struct method size (line 153) | func (t offsetFetchRequestV1) size() int32 { method writeTo (line 158) | func (t offsetFetchRequestV1) writeTo(wb *writeBuffer) { type offsetFetchResponseV1PartitionResponse (line 163) | type offsetFetchResponseV1PartitionResponse struct method size (line 177) | func (t offsetFetchResponseV1PartitionResponse) size() int32 { method writeTo (line 184) | func (t offsetFetchResponseV1PartitionResponse) writeTo(wb *writeBuffe... method readFrom (line 191) | func (t *offsetFetchResponseV1PartitionResponse) readFrom(r *bufio.Rea... type offsetFetchResponseV1Response (line 207) | type offsetFetchResponseV1Response struct method size (line 215) | func (t offsetFetchResponseV1Response) size() int32 { method writeTo (line 220) | func (t offsetFetchResponseV1Response) writeTo(wb *writeBuffer) { method readFrom (line 225) | func (t *offsetFetchResponseV1Response) readFrom(r *bufio.Reader, size... type offsetFetchResponseV1 (line 245) | type offsetFetchResponseV1 struct method size (line 250) | func (t offsetFetchResponseV1) size() int32 { method writeTo (line 254) | func (t offsetFetchResponseV1) writeTo(wb *writeBuffer) { method readFrom (line 258) | func (t *offsetFetchResponseV1) readFrom(r *bufio.Reader, size int) (r... FILE: offsetfetch_test.go function TestOffsetFetchResponseV1 (line 14) | func TestOffsetFetchResponseV1(t *testing.T) { function TestOffsetFetchRequestWithNoTopic (line 51) | func TestOffsetFetchRequestWithNoTopic(t *testing.T) { function TestOffsetFetchRequestWithOneTopic (line 112) | func TestOffsetFetchRequestWithOneTopic(t *testing.T) { FILE: produce.go type RequiredAcks (line 17) | type RequiredAcks method String (line 25) | func (acks RequiredAcks) String() string { method MarshalText (line 38) | func (acks RequiredAcks) MarshalText() ([]byte, error) { method UnmarshalText (line 42) | func (acks *RequiredAcks) UnmarshalText(b []byte) error { constant RequireNone (line 20) | RequireNone RequiredAcks = 0 constant RequireOne (line 21) | RequireOne RequiredAcks = 1 constant RequireAll (line 22) | RequireAll RequiredAcks = -1 type ProduceRequest (line 68) | type ProduceRequest struct type ProduceResponse (line 101) | type ProduceResponse struct method Produce (line 145) | func (c *Client) Produce(ctx context.Context, req *ProduceRequest) (*Pro... type produceRequestV2 (line 205) | type produceRequestV2 struct method size (line 211) | func (r produceRequestV2) size() int32 { method writeTo (line 215) | func (r produceRequestV2) writeTo(wb *writeBuffer) { type produceRequestTopicV2 (line 221) | type produceRequestTopicV2 struct method size (line 226) | func (t produceRequestTopicV2) size() int32 { method writeTo (line 231) | func (t produceRequestTopicV2) writeTo(wb *writeBuffer) { type produceRequestPartitionV2 (line 236) | type produceRequestPartitionV2 struct method size (line 242) | func (p produceRequestPartitionV2) size() int32 { method writeTo (line 246) | func (p produceRequestPartitionV2) writeTo(wb *writeBuffer) { type produceResponsePartitionV2 (line 252) | type produceResponsePartitionV2 struct method size (line 259) | func (p produceResponsePartitionV2) size() int32 { method writeTo (line 263) | func (p produceResponsePartitionV2) writeTo(wb *writeBuffer) { method readFrom (line 270) | func (p *produceResponsePartitionV2) readFrom(r *bufio.Reader, sz int)... type produceResponsePartitionV7 (line 286) | type produceResponsePartitionV7 struct method size (line 294) | func (p produceResponsePartitionV7) size() int32 { method writeTo (line 298) | func (p produceResponsePartitionV7) writeTo(wb *writeBuffer) { method readFrom (line 306) | func (p *produceResponsePartitionV7) readFrom(r *bufio.Reader, sz int)... FILE: produce_test.go function TestRequiredAcks (line 12) | func TestRequiredAcks(t *testing.T) { function TestClientProduce (line 44) | func TestClientProduce(t *testing.T) { function TestClientProduceCompressed (line 74) | func TestClientProduceCompressed(t *testing.T) { function TestClientProduceNilRecords (line 105) | func TestClientProduceNilRecords(t *testing.T) { function TestClientProduceEmptyRecords (line 121) | func TestClientProduceEmptyRecords(t *testing.T) { FILE: protocol.go type ApiVersion (line 9) | type ApiVersion struct method Format (line 15) | func (v ApiVersion) Format(w fmt.State, r rune) { type apiKey (line 42) | type apiKey method String (line 95) | func (k apiKey) String() string { constant produce (line 45) | produce apiKey = 0 constant fetch (line 46) | fetch apiKey = 1 constant listOffsets (line 47) | listOffsets apiKey = 2 constant metadata (line 48) | metadata apiKey = 3 constant leaderAndIsr (line 49) | leaderAndIsr apiKey = 4 constant stopReplica (line 50) | stopReplica apiKey = 5 constant updateMetadata (line 51) | updateMetadata apiKey = 6 constant controlledShutdown (line 52) | controlledShutdown apiKey = 7 constant offsetCommit (line 53) | offsetCommit apiKey = 8 constant offsetFetch (line 54) | offsetFetch apiKey = 9 constant findCoordinator (line 55) | findCoordinator apiKey = 10 constant joinGroup (line 56) | joinGroup apiKey = 11 constant heartbeat (line 57) | heartbeat apiKey = 12 constant leaveGroup (line 58) | leaveGroup apiKey = 13 constant syncGroup (line 59) | syncGroup apiKey = 14 constant describeGroups (line 60) | describeGroups apiKey = 15 constant listGroups (line 61) | listGroups apiKey = 16 constant saslHandshake (line 62) | saslHandshake apiKey = 17 constant apiVersions (line 63) | apiVersions apiKey = 18 constant createTopics (line 64) | createTopics apiKey = 19 constant deleteTopics (line 65) | deleteTopics apiKey = 20 constant deleteRecords (line 66) | deleteRecords apiKey = 21 constant initProducerId (line 67) | initProducerId apiKey = 22 constant offsetForLeaderEpoch (line 68) | offsetForLeaderEpoch apiKey = 23 constant addPartitionsToTxn (line 69) | addPartitionsToTxn apiKey = 24 constant addOffsetsToTxn (line 70) | addOffsetsToTxn apiKey = 25 constant endTxn (line 71) | endTxn apiKey = 26 constant writeTxnMarkers (line 72) | writeTxnMarkers apiKey = 27 constant txnOffsetCommit (line 73) | txnOffsetCommit apiKey = 28 constant describeAcls (line 74) | describeAcls apiKey = 29 constant createAcls (line 75) | createAcls apiKey = 30 constant deleteAcls (line 76) | deleteAcls apiKey = 31 constant describeConfigs (line 77) | describeConfigs apiKey = 32 constant alterConfigs (line 78) | alterConfigs apiKey = 33 constant alterReplicaLogDirs (line 79) | alterReplicaLogDirs apiKey = 34 constant describeLogDirs (line 80) | describeLogDirs apiKey = 35 constant saslAuthenticate (line 81) | saslAuthenticate apiKey = 36 constant createPartitions (line 82) | createPartitions apiKey = 37 constant createDelegationToken (line 83) | createDelegationToken apiKey = 38 constant renewDelegationToken (line 84) | renewDelegationToken apiKey = 39 constant expireDelegationToken (line 85) | expireDelegationToken apiKey = 40 constant describeDelegationToken (line 86) | describeDelegationToken apiKey = 41 constant deleteGroups (line 87) | deleteGroups apiKey = 42 constant electLeaders (line 88) | electLeaders apiKey = 43 constant incrementalAlterConfigs (line 89) | incrementalAlterConfigs apiKey = 44 constant alterPartitionReassignments (line 90) | alterPartitionReassignments apiKey = 45 constant listPartitionReassignments (line 91) | listPartitionReassignments apiKey = 46 constant offsetDelete (line 92) | offsetDelete apiKey = 47 type apiVersion (line 102) | type apiVersion constant v0 (line 105) | v0 = 0 constant v1 (line 106) | v1 = 1 constant v2 (line 107) | v2 = 2 constant v3 (line 108) | v3 = 3 constant v5 (line 109) | v5 = 5 constant v6 (line 110) | v6 = 6 constant v7 (line 111) | v7 = 7 constant v10 (line 112) | v10 = 10 type requestHeader (line 168) | type requestHeader struct method size (line 176) | func (h requestHeader) size() int32 { method writeTo (line 180) | func (h requestHeader) writeTo(wb *writeBuffer) { type request (line 188) | type request interface function makeInt8 (line 193) | func makeInt8(b []byte) int8 { function makeInt16 (line 197) | func makeInt16(b []byte) int16 { function makeInt32 (line 201) | func makeInt32(b []byte) int32 { function makeInt64 (line 205) | func makeInt64(b []byte) int64 { function expectZeroSize (line 209) | func expectZeroSize(sz int, err error) error { FILE: protocol/addoffsetstotxn/addoffsetstotxn.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 20) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.AddOffset... method Transaction (line 22) | func (r *Request) Transaction() string { return r.TransactionalID } type Response (line 26) | type Response struct method ApiKey (line 35) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.AddOffse... FILE: protocol/addoffsetstotxn/addoffsetstotxn_test.go function TestAddOffsetsToTxnRequest (line 10) | func TestAddOffsetsToTxnRequest(t *testing.T) { function TestAddOffsetsToTxnResponse (line 21) | func TestAddOffsetsToTxnResponse(t *testing.T) { FILE: protocol/addpartitionstotxn/addpartitionstotxn.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 29) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.AddPartit... method Transaction (line 31) | func (r *Request) Transaction() string { return r.TransactionalID } type RequestTopic (line 20) | type RequestTopic struct type Response (line 35) | type Response struct method ApiKey (line 62) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.AddParti... type ResponseResult (line 44) | type ResponseResult struct type ResponsePartition (line 53) | type ResponsePartition struct FILE: protocol/addpartitionstotxn/addpartitionstotxn_test.go function TestAddPartitionsToTxnRequest (line 10) | func TestAddPartitionsToTxnRequest(t *testing.T) { function TestAddPartitionsToTxnResponse (line 30) | func TestAddPartitionsToTxnResponse(t *testing.T) { FILE: protocol/alterclientquotas/alterclientquotas.go function init (line 5) | func init() { type Request (line 10) | type Request struct method ApiKey (line 18) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.AlterClie... method Broker (line 20) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type Entry (line 24) | type Entry struct type Entity (line 32) | type Entity struct type Ops (line 40) | type Ops struct type Response (line 49) | type Response struct method ApiKey (line 57) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.AlterCli... type ResponseQuotas (line 59) | type ResponseQuotas struct FILE: protocol/alterclientquotas/alterclientquotas_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 function TestAlterClientQuotasRequest (line 15) | func TestAlterClientQuotasRequest(t *testing.T) { function TestAlterClientQuotasResponse (line 59) | func TestAlterClientQuotasResponse(t *testing.T) { FILE: protocol/alterconfigs/alterconfigs.go function init (line 5) | func init() { type Request (line 10) | type Request struct method ApiKey (line 15) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.AlterConf... method Broker (line 17) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestResources (line 21) | type RequestResources struct type RequestConfig (line 27) | type RequestConfig struct type Response (line 32) | type Response struct method ApiKey (line 37) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.AlterCon... type ResponseResponses (line 39) | type ResponseResponses struct FILE: protocol/alterconfigs/alterconfigs_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 function TestAlterConfigsRequest (line 15) | func TestAlterConfigsRequest(t *testing.T) { function TestAlterConfigsResponse (line 49) | func TestAlterConfigsResponse(t *testing.T) { FILE: protocol/alterpartitionreassignments/alterpartitionreassignments.go function init (line 5) | func init() { type Request (line 10) | type Request struct method ApiKey (line 29) | func (r *Request) ApiKey() protocol.ApiKey { method Broker (line 33) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestTopic (line 19) | type RequestTopic struct type RequestPartition (line 24) | type RequestPartition struct type Response (line 37) | type Response struct method ApiKey (line 59) | func (r *Response) ApiKey() protocol.ApiKey { type ResponseResult (line 48) | type ResponseResult struct type ResponsePartition (line 53) | type ResponsePartition struct FILE: protocol/alterpartitionreassignments/alterpartitionreassignments_test.go constant v0 (line 11) | v0 = 0 function TestAlterPartitionReassignmentsRequest (line 14) | func TestAlterPartitionReassignmentsRequest(t *testing.T) { function TestAlterPartitionReassignmentsResponse (line 34) | func TestAlterPartitionReassignmentsResponse(t *testing.T) { FILE: protocol/alteruserscramcredentials/alteruserscramcredentials.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 18) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.AlterUser... method Broker (line 20) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestUserScramCredentialsDeletion (line 24) | type RequestUserScramCredentialsDeletion struct type RequestUserScramCredentialsUpsertion (line 33) | type RequestUserScramCredentialsUpsertion struct type Response (line 45) | type Response struct method ApiKey (line 54) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.AlterUse... type ResponseUserScramCredentials (line 56) | type ResponseUserScramCredentials struct FILE: protocol/alteruserscramcredentials/alteruserscramcredentials_test.go constant v0 (line 11) | v0 = 0 function TestAlterUserScramCredentialsRequest (line 14) | func TestAlterUserScramCredentialsRequest(t *testing.T) { function TestAlterUserScramCredentialsResponse (line 34) | func TestAlterUserScramCredentialsResponse(t *testing.T) { FILE: protocol/apiversions/apiversions.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 13) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.ApiVersio... type Response (line 15) | type Response struct method ApiKey (line 21) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.ApiVersi... type ApiKeyResponse (line 23) | type ApiKeyResponse struct FILE: protocol/apiversions/apiversions_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v2 (line 13) | v2 = 2 function TestApiversionsRequest (line 16) | func TestApiversionsRequest(t *testing.T) { function TestApiversionsResponse (line 24) | func TestApiversionsResponse(t *testing.T) { FILE: protocol/buffer.go type Bytes (line 24) | type Bytes interface function NewBytes (line 37) | func NewBytes(b []byte) Bytes { function ReadAll (line 50) | func ReadAll(b Bytes) ([]byte, error) { type bytesReader (line 59) | type bytesReader struct method Close (line 61) | func (*bytesReader) Close() error { return nil } type refCount (line 63) | type refCount method ref (line 65) | func (rc *refCount) ref() { atomic.AddUintptr((*uintptr)(rc), 1) } method unref (line 67) | func (rc *refCount) unref(onZero func()) { constant pageSize (line 79) | pageSize = 65536 type page (line 82) | type page struct method ref (line 105) | func (p *page) ref() { p.refc.ref() } method unref (line 107) | func (p *page) unref() { p.refc.unref(func() { pagePool.Put(p) }) } method slice (line 109) | func (p *page) slice(begin, end int64) []byte { method Cap (line 131) | func (p *page) Cap() int { return pageSize } method Len (line 133) | func (p *page) Len() int { return p.length } method Size (line 135) | func (p *page) Size() int64 { return int64(p.length) } method Truncate (line 137) | func (p *page) Truncate(n int) { method ReadAt (line 143) | func (p *page) ReadAt(b []byte, off int64) (int, error) { method ReadFrom (line 153) | func (p *page) ReadFrom(r io.Reader) (int64, error) { method WriteAt (line 162) | func (p *page) WriteAt(b []byte, off int64) (int, error) { method Write (line 173) | func (p *page) Write(b []byte) (int, error) { function newPage (line 89) | func newPage(offset int64) *page { type pageBuffer (line 184) | type pageBuffer struct method refTo (line 205) | func (pb *pageBuffer) refTo(ref *pageRef, begin, end int64) { method ref (line 218) | func (pb *pageBuffer) ref(begin, end int64) *pageRef { method unref (line 224) | func (pb *pageBuffer) unref() { method newPage (line 234) | func (pb *pageBuffer) newPage() *page { method Close (line 238) | func (pb *pageBuffer) Close() error { method Len (line 242) | func (pb *pageBuffer) Len() int { method Size (line 246) | func (pb *pageBuffer) Size() int64 { method Discard (line 250) | func (pb *pageBuffer) Discard(n int) (int, error) { method Truncate (line 259) | func (pb *pageBuffer) Truncate(n int) { method Seek (line 284) | func (pb *pageBuffer) Seek(offset int64, whence int) (int64, error) { method ReadByte (line 293) | func (pb *pageBuffer) ReadByte() (byte, error) { method Read (line 299) | func (pb *pageBuffer) Read(b []byte) (int, error) { method ReadAt (line 308) | func (pb *pageBuffer) ReadAt(b []byte, off int64) (int, error) { method ReadFrom (line 312) | func (pb *pageBuffer) ReadFrom(r io.Reader) (int64, error) { method WriteString (line 338) | func (pb *pageBuffer) WriteString(s string) (int, error) { method Write (line 342) | func (pb *pageBuffer) Write(b []byte) (int, error) { method WriteAt (line 372) | func (pb *pageBuffer) WriteAt(b []byte, off int64) (int, error) { method WriteTo (line 383) | func (pb *pageBuffer) WriteTo(w io.Writer) (int64, error) { function newPageBuffer (line 191) | func newPageBuffer() *pageBuffer { type contiguousPages (line 408) | type contiguousPages method ref (line 410) | func (pages contiguousPages) ref() { method unref (line 416) | func (pages contiguousPages) unref() { method clear (line 422) | func (pages contiguousPages) clear() { method ReadAt (line 428) | func (pages contiguousPages) ReadAt(b []byte, off int64) (int, error) { method WriteAt (line 441) | func (pages contiguousPages) WriteAt(b []byte, off int64) (int, error) { method slice (line 454) | func (pages contiguousPages) slice(begin, end int64) contiguousPages { method indexOf (line 463) | func (pages contiguousPages) indexOf(offset int64) int { method scan (line 470) | func (pages contiguousPages) scan(begin, end int64, f func([]byte) boo... type pageRef (line 483) | type pageRef struct method unref (line 492) | func (ref *pageRef) unref() { method Len (line 503) | func (ref *pageRef) Len() int { return int(ref.Size() - ref.cursor) } method Size (line 505) | func (ref *pageRef) Size() int64 { return int64(ref.length) } method Close (line 507) | func (ref *pageRef) Close() error { ref.unref(); return nil } method String (line 509) | func (ref *pageRef) String() string { method Seek (line 513) | func (ref *pageRef) Seek(offset int64, whence int) (int64, error) { method ReadByte (line 522) | func (ref *pageRef) ReadByte() (byte, error) { method Read (line 537) | func (ref *pageRef) Read(b []byte) (int, error) { method ReadAt (line 546) | func (ref *pageRef) ReadAt(b []byte, off int64) (int, error) { method WriteTo (line 569) | func (ref *pageRef) WriteTo(w io.Writer) (wn int64, err error) { method scan (line 580) | func (ref *pageRef) scan(off int64, f func([]byte) bool) { type pageRefAllocator (line 594) | type pageRefAllocator struct method newPageRef (line 600) | func (a *pageRefAllocator) newPageRef() *pageRef { function seek (line 610) | func seek(cursor, limit, offset int64, whence int) (int64, error) { function closeBytes (line 630) | func closeBytes(b Bytes) { FILE: protocol/buffer_test.go function TestPageBufferWriteReadSeek (line 10) | func TestPageBufferWriteReadSeek(t *testing.T) { function TestPageRefWriteReadSeek (line 48) | func TestPageRefWriteReadSeek(t *testing.T) { function TestPageRefReadByte (line 89) | func TestPageRefReadByte(t *testing.T) { FILE: protocol/cluster.go type Cluster (line 10) | type Cluster struct method BrokerIDs (line 17) | func (c Cluster) BrokerIDs() []int32 { method TopicNames (line 28) | func (c Cluster) TopicNames() []string { method IsZero (line 37) | func (c Cluster) IsZero() bool { method Format (line 41) | func (c Cluster) Format(w fmt.State, _ rune) { function formatBrokerIDs (line 108) | func formatBrokerIDs(brokerIDs []int32, leader int32) string { FILE: protocol/conn.go type Conn (line 11) | type Conn struct method String (line 27) | func (c *Conn) String() string { method Close (line 31) | func (c *Conn) Close() error { method Discard (line 35) | func (c *Conn) Discard(n int) (int, error) { method Peek (line 39) | func (c *Conn) Peek(n int) ([]byte, error) { method Read (line 43) | func (c *Conn) Read(b []byte) (int, error) { method Write (line 47) | func (c *Conn) Write(b []byte) (int, error) { method LocalAddr (line 51) | func (c *Conn) LocalAddr() net.Addr { method RemoteAddr (line 55) | func (c *Conn) RemoteAddr() net.Addr { method SetDeadline (line 59) | func (c *Conn) SetDeadline(t time.Time) error { method SetReadDeadline (line 63) | func (c *Conn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 67) | func (c *Conn) SetWriteDeadline(t time.Time) error { method SetVersions (line 71) | func (c *Conn) SetVersions(versions map[ApiKey]int16) { method RoundTrip (line 81) | func (c *Conn) RoundTrip(msg Message) (Message, error) { function NewConn (line 19) | func NewConn(conn net.Conn, clientID string) *Conn { FILE: protocol/consumer/consumer.go constant MaxVersionSupported (line 3) | MaxVersionSupported = 1 type Subscription (line 5) | type Subscription struct type Assignment (line 12) | type Assignment struct type TopicPartition (line 18) | type TopicPartition struct FILE: protocol/consumer/consumer_test.go function TestSubscription (line 11) | func TestSubscription(t *testing.T) { FILE: protocol/createacls/createacls.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.CreateAcls } method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestACLs (line 23) | type RequestACLs struct type Response (line 37) | type Response struct method ApiKey (line 46) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.CreateAc... type ResponseACLs (line 48) | type ResponseACLs struct FILE: protocol/createacls/createacls_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v2 (line 13) | v2 = 2 constant v3 (line 14) | v3 = 3 function TestCreateACLsRequest (line 17) | func TestCreateACLsRequest(t *testing.T) { function TestCreateACLsResponse (line 74) | func TestCreateACLsResponse(t *testing.T) { FILE: protocol/createpartitions/createpartitions.go function init (line 5) | func init() { type Request (line 11) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.CreatePar... method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestTopic (line 23) | type RequestTopic struct type RequestAssignment (line 29) | type RequestAssignment struct type Response (line 33) | type Response struct method ApiKey (line 38) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.CreatePa... type ResponseResult (line 40) | type ResponseResult struct FILE: protocol/createpartitions/createpartitions_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 function TestCreatePartitionsRequest (line 15) | func TestCreatePartitionsRequest(t *testing.T) { function TestCreatePartitionsResponse (line 49) | func TestCreatePartitionsResponse(t *testing.T) { FILE: protocol/createtopics/createtopics.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 19) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.CreateTop... method Broker (line 21) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestTopic (line 25) | type RequestTopic struct type RequestAssignment (line 33) | type RequestAssignment struct type RequestConfig (line 38) | type RequestConfig struct type Response (line 43) | type Response struct method ApiKey (line 52) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.CreateTo... type ResponseTopic (line 54) | type ResponseTopic struct type ResponseTopicConfig (line 64) | type ResponseTopicConfig struct FILE: protocol/decode.go type discarder (line 16) | type discarder interface type decoder (line 20) | type decoder struct method Reset (line 29) | func (d *decoder) Reset(r io.Reader, n int) { method Read (line 38) | func (d *decoder) Read(b []byte) (int, error) { method ReadByte (line 56) | func (d *decoder) ReadByte() (byte, error) { method done (line 61) | func (d *decoder) done() bool { method setCRC (line 65) | func (d *decoder) setCRC(table *crc32.Table) { method decodeBool (line 69) | func (d *decoder) decodeBool(v value) { method decodeInt8 (line 73) | func (d *decoder) decodeInt8(v value) { method decodeInt16 (line 77) | func (d *decoder) decodeInt16(v value) { method decodeInt32 (line 81) | func (d *decoder) decodeInt32(v value) { method decodeInt64 (line 85) | func (d *decoder) decodeInt64(v value) { method decodeFloat64 (line 89) | func (d *decoder) decodeFloat64(v value) { method decodeString (line 93) | func (d *decoder) decodeString(v value) { method decodeCompactString (line 97) | func (d *decoder) decodeCompactString(v value) { method decodeBytes (line 101) | func (d *decoder) decodeBytes(v value) { method decodeCompactBytes (line 105) | func (d *decoder) decodeCompactBytes(v value) { method decodeArray (line 109) | func (d *decoder) decodeArray(v value, elemType reflect.Type, decodeEl... method decodeCompactArray (line 121) | func (d *decoder) decodeCompactArray(v value, elemType reflect.Type, d... method discardAll (line 133) | func (d *decoder) discardAll() { method discard (line 137) | func (d *decoder) discard(n int) { method read (line 151) | func (d *decoder) read(n int) []byte { method writeTo (line 159) | func (d *decoder) writeTo(w io.Writer, n int) { method setError (line 172) | func (d *decoder) setError(err error) { method readFull (line 179) | func (d *decoder) readFull(b []byte) bool { method readByte (line 185) | func (d *decoder) readByte() byte { method readBool (line 192) | func (d *decoder) readBool() bool { method readInt8 (line 196) | func (d *decoder) readInt8() int8 { method readInt16 (line 203) | func (d *decoder) readInt16() int16 { method readInt32 (line 210) | func (d *decoder) readInt32() int32 { method readInt64 (line 217) | func (d *decoder) readInt64() int64 { method readFloat64 (line 224) | func (d *decoder) readFloat64() float64 { method readString (line 231) | func (d *decoder) readString() string { method readVarString (line 239) | func (d *decoder) readVarString() string { method readCompactString (line 247) | func (d *decoder) readCompactString() string { method readBytes (line 255) | func (d *decoder) readBytes() []byte { method readVarBytes (line 263) | func (d *decoder) readVarBytes() []byte { method readCompactBytes (line 271) | func (d *decoder) readCompactBytes() []byte { method readVarInt (line 279) | func (d *decoder) readVarInt() int64 { method readUnsignedVarInt (line 306) | func (d *decoder) readUnsignedVarInt() uint64 { type decodeFunc (line 333) | type decodeFunc function decodeFuncOf (line 342) | func decodeFuncOf(typ reflect.Type, version int16, flexible bool, tag st... function stringDecodeFuncOf (line 373) | func stringDecodeFuncOf(flexible bool, tag structTag) decodeFunc { function bytesDecodeFuncOf (line 381) | func bytesDecodeFuncOf(flexible bool, tag structTag) decodeFunc { function structDecodeFuncOf (line 389) | func structDecodeFuncOf(typ reflect.Type, version int16, flexible bool) ... function arrayDecodeFuncOf (line 447) | func arrayDecodeFuncOf(typ reflect.Type, version int16, flexible bool, t... function readerDecodeFuncOf (line 458) | func readerDecodeFuncOf(typ reflect.Type) decodeFunc { function readInt8 (line 470) | func readInt8(b []byte) int8 { function readInt16 (line 474) | func readInt16(b []byte) int16 { function readInt32 (line 478) | func readInt32(b []byte) int32 { function readInt64 (line 482) | func readInt64(b []byte) int64 { function readFloat64 (line 486) | func readFloat64(b []byte) float64 { function Unmarshal (line 490) | func Unmarshal(data []byte, version int16, value interface{}) error { FILE: protocol/deleteacls/deleteacls.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DeleteAcls } method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestFilter (line 23) | type RequestFilter struct type Response (line 37) | type Response struct method ApiKey (line 46) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.DeleteAc... type FilterResult (line 48) | type FilterResult struct type MatchingACL (line 58) | type MatchingACL struct FILE: protocol/deleteacls/deleteacls_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v2 (line 13) | v2 = 2 constant v3 (line 14) | v3 = 3 function TestDeleteACLsRequest (line 17) | func TestDeleteACLsRequest(t *testing.T) { function TestDeleteACLsResponse (line 74) | func TestDeleteACLsResponse(t *testing.T) { FILE: protocol/deletegroups/deletegroups.go function init (line 5) | func init() { type Request (line 9) | type Request struct method Group (line 17) | func (r *Request) Group() string { method ApiKey (line 25) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DeleteGro... type Response (line 31) | type Response struct method ApiKey (line 40) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.DeleteGr... type ResponseGroup (line 42) | type ResponseGroup struct FILE: protocol/deletegroups/deletegroups_test.go function TestDeleteGroupsRequest (line 10) | func TestDeleteGroupsRequest(t *testing.T) { function TestDeleteGroupsResponse (line 18) | func TestDeleteGroupsResponse(t *testing.T) { FILE: protocol/deletetopics/deletetopics.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 14) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DeleteTop... method Broker (line 16) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type Response (line 20) | type Response struct method ApiKey (line 25) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.DeleteTo... type ResponseTopic (line 27) | type ResponseTopic struct FILE: protocol/deletetopics/deletetopics_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v3 (line 13) | v3 = 3 function TestDeleteTopicsRequest (line 16) | func TestDeleteTopicsRequest(t *testing.T) { function TestDeleteTopicsResponse (line 33) | func TestDeleteTopicsResponse(t *testing.T) { FILE: protocol/describeacls/describeacls.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DescribeA... method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type ACLFilter (line 23) | type ACLFilter struct type Response (line 37) | type Response struct method ApiKey (line 48) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Describe... type Resource (line 50) | type Resource struct type ResponseACL (line 61) | type ResponseACL struct FILE: protocol/describeacls/describeacls_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v2 (line 13) | v2 = 2 constant v3 (line 14) | v3 = 3 function TestDescribeACLsRequest (line 17) | func TestDescribeACLsRequest(t *testing.T) { function TestDescribeACLsResponse (line 66) | func TestDescribeACLsResponse(t *testing.T) { FILE: protocol/describeclientquotas/describeclientquotas.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DescribeC... method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type Component (line 23) | type Component struct type Response (line 32) | type Response struct method ApiKey (line 42) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Describe... type Entity (line 44) | type Entity struct type Value (line 52) | type Value struct type ResponseQuotas (line 60) | type ResponseQuotas struct FILE: protocol/describeclientquotas/describeclientquotas_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 function TestDescribeClientQuotasRequest (line 15) | func TestDescribeClientQuotasRequest(t *testing.T) { function TestDescribeClientQuotasResponse (line 39) | func TestDescribeClientQuotasResponse(t *testing.T) { FILE: protocol/describeconfigs/describeconfigs.go constant resourceTypeBroker (line 10) | resourceTypeBroker int8 = 4 function init (line 13) | func init() { type Request (line 18) | type Request struct method ApiKey (line 24) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DescribeC... method Broker (line 26) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... method Split (line 42) | func (r *Request) Split(cluster protocol.Cluster) ( type RequestResource (line 70) | type RequestResource struct type Response (line 76) | type Response struct method ApiKey (line 81) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Describe... method Merge (line 83) | func (r *Response) Merge(requests []protocol.Message, results []interf... type ResponseResource (line 103) | type ResponseResource struct type ResponseConfigEntry (line 111) | type ResponseConfigEntry struct type ResponseConfigSynonym (line 123) | type ResponseConfigSynonym struct FILE: protocol/describeconfigs/describeconfigs_test.go function TestResponse_Merge (line 14) | func TestResponse_Merge(t *testing.T) { FILE: protocol/describegroups/describegroups.go function init (line 7) | func init() { type Request (line 12) | type Request struct method ApiKey (line 20) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DescribeG... method Group (line 22) | func (r *Request) Group() string { method Split (line 26) | func (r *Request) Split(cluster protocol.Cluster) ( type Response (line 47) | type Response struct method ApiKey (line 80) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Describe... method Merge (line 82) | func (r *Response) Merge(requests []protocol.Message, results []interf... type ResponseGroup (line 55) | type ResponseGroup struct type ResponseGroupMember (line 68) | type ResponseGroupMember struct FILE: protocol/describegroups/describegroups_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v2 (line 13) | v2 = 2 constant v3 (line 14) | v3 = 3 constant v4 (line 15) | v4 = 4 constant v5 (line 16) | v5 = 5 function TestDescribeGroupsRequest (line 19) | func TestDescribeGroupsRequest(t *testing.T) { function TestDescribeGroupsResponse (line 48) | func TestDescribeGroupsResponse(t *testing.T) { FILE: protocol/describeuserscramcredentials/describeuserscramcredentials.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.DescribeU... method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestUser (line 23) | type RequestUser struct type Response (line 31) | type Response struct method ApiKey (line 42) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Describe... type ResponseResult (line 44) | type ResponseResult struct type CredentialInfo (line 55) | type CredentialInfo struct FILE: protocol/describeuserscramcredentials/describeuserscramcredentials_test.go constant v0 (line 11) | v0 = 0 function TestDescribeUserScramCredentialsRequest (line 14) | func TestDescribeUserScramCredentialsRequest(t *testing.T) { function TestDescribeUserScramCredentialsResponse (line 24) | func TestDescribeUserScramCredentialsResponse(t *testing.T) { FILE: protocol/electleaders/electleaders.go function init (line 5) | func init() { type Request (line 10) | type Request struct method ApiKey (line 21) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.ElectLead... method Broker (line 23) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestTopicPartitions (line 16) | type RequestTopicPartitions struct type Response (line 27) | type Response struct method ApiKey (line 44) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.ElectLea... type ResponseReplicaElectionResult (line 33) | type ResponseReplicaElectionResult struct type ResponsePartitionResult (line 38) | type ResponsePartitionResult struct FILE: protocol/electleaders/electleaders_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 function TestElectLeadersRequest (line 15) | func TestElectLeadersRequest(t *testing.T) { function TestElectLeadersResponse (line 38) | func TestElectLeadersResponse(t *testing.T) { FILE: protocol/encode.go type encoder (line 15) | type encoder struct method Reset (line 36) | func (e *encoder) Reset(w io.Writer) { method ReadFrom (line 44) | func (e *encoder) ReadFrom(r io.Reader) (int64, error) { method Write (line 54) | func (e *encoder) Write(b []byte) (int, error) { method WriteByte (line 68) | func (e *encoder) WriteByte(b byte) error { method WriteString (line 74) | func (e *encoder) WriteString(s string) (int, error) { method setCRC (line 99) | func (e *encoder) setCRC(table *crc32.Table) { method update (line 103) | func (e *encoder) update(b []byte) { method encodeBool (line 109) | func (e *encoder) encodeBool(v value) { method encodeInt8 (line 117) | func (e *encoder) encodeInt8(v value) { method encodeInt16 (line 121) | func (e *encoder) encodeInt16(v value) { method encodeInt32 (line 125) | func (e *encoder) encodeInt32(v value) { method encodeInt64 (line 129) | func (e *encoder) encodeInt64(v value) { method encodeFloat64 (line 133) | func (e *encoder) encodeFloat64(v value) { method encodeString (line 137) | func (e *encoder) encodeString(v value) { method encodeCompactString (line 141) | func (e *encoder) encodeCompactString(v value) { method encodeNullString (line 145) | func (e *encoder) encodeNullString(v value) { method encodeCompactNullString (line 149) | func (e *encoder) encodeCompactNullString(v value) { method encodeBytes (line 153) | func (e *encoder) encodeBytes(v value) { method encodeCompactBytes (line 157) | func (e *encoder) encodeCompactBytes(v value) { method encodeNullBytes (line 161) | func (e *encoder) encodeNullBytes(v value) { method encodeCompactNullBytes (line 165) | func (e *encoder) encodeCompactNullBytes(v value) { method encodeArray (line 169) | func (e *encoder) encodeArray(v value, elemType reflect.Type, encodeEl... method encodeCompactArray (line 179) | func (e *encoder) encodeCompactArray(v value, elemType reflect.Type, e... method encodeNullArray (line 189) | func (e *encoder) encodeNullArray(v value, elemType reflect.Type, enco... method encodeCompactNullArray (line 204) | func (e *encoder) encodeCompactNullArray(v value, elemType reflect.Typ... method writeInt8 (line 218) | func (e *encoder) writeInt8(i int8) { method writeInt16 (line 223) | func (e *encoder) writeInt16(i int16) { method writeInt32 (line 228) | func (e *encoder) writeInt32(i int32) { method writeInt64 (line 233) | func (e *encoder) writeInt64(i int64) { method writeFloat64 (line 238) | func (e *encoder) writeFloat64(f float64) { method writeString (line 243) | func (e *encoder) writeString(s string) { method writeVarString (line 248) | func (e *encoder) writeVarString(s string) { method writeCompactString (line 253) | func (e *encoder) writeCompactString(s string) { method writeNullString (line 258) | func (e *encoder) writeNullString(s string) { method writeCompactNullString (line 267) | func (e *encoder) writeCompactNullString(s string) { method writeBytes (line 276) | func (e *encoder) writeBytes(b []byte) { method writeCompactBytes (line 281) | func (e *encoder) writeCompactBytes(b []byte) { method writeNullBytes (line 286) | func (e *encoder) writeNullBytes(b []byte) { method writeVarNullBytes (line 295) | func (e *encoder) writeVarNullBytes(b []byte) { method writeCompactNullBytes (line 304) | func (e *encoder) writeCompactNullBytes(b []byte) { method writeNullBytesFrom (line 313) | func (e *encoder) writeNullBytesFrom(b Bytes) error { method writeVarNullBytesFrom (line 328) | func (e *encoder) writeVarNullBytesFrom(b Bytes) error { method writeVarInt (line 343) | func (e *encoder) writeVarInt(i int64) { method writeUnsignedVarInt (line 347) | func (e *encoder) writeUnsignedVarInt(i uint64) { type encoderChecksum (line 23) | type encoderChecksum struct method Read (line 28) | func (e *encoderChecksum) Read(b []byte) (int, error) { type encodeFunc (line 365) | type encodeFunc function encodeFuncOf (line 376) | func encodeFuncOf(typ reflect.Type, version int16, flexible bool, tag st... function stringEncodeFuncOf (line 407) | func stringEncodeFuncOf(flexible bool, tag structTag) encodeFunc { function bytesEncodeFuncOf (line 422) | func bytesEncodeFuncOf(flexible bool, tag structTag) encodeFunc { function structEncodeFuncOf (line 437) | func structEncodeFuncOf(typ reflect.Type, version int16, flexible bool) ... function arrayEncodeFuncOf (line 496) | func arrayEncodeFuncOf(typ reflect.Type, version int16, flexible bool, t... function writerEncodeFuncOf (line 513) | func writerEncodeFuncOf(typ reflect.Type) encodeFunc { function writeInt8 (line 529) | func writeInt8(b []byte, i int8) { function writeInt16 (line 533) | func writeInt16(b []byte, i int16) { function writeInt32 (line 537) | func writeInt32(b []byte, i int32) { function writeInt64 (line 541) | func writeInt64(b []byte, i int64) { function writeFloat64 (line 545) | func writeFloat64(b []byte, f float64) { function Marshal (line 549) | func Marshal(version int16, value interface{}) ([]byte, error) { type versionedType (line 598) | type versionedType struct FILE: protocol/endtxn/endtxn.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 20) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.EndTxn } method Transaction (line 22) | func (r *Request) Transaction() string { return r.TransactionalID } type Response (line 26) | type Response struct method ApiKey (line 35) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.EndTxn } FILE: protocol/endtxn/endtxn_test.go function TestEndTxnRequest (line 10) | func TestEndTxnRequest(t *testing.T) { function TestEndTxnResponse (line 21) | func TestEndTxnResponse(t *testing.T) { FILE: protocol/error.go type Error (line 8) | type Error method Error (line 10) | func (e Error) Error() string { return string(e) } function Errorf (line 12) | func Errorf(msg string, args ...interface{}) Error { constant ErrNoTopic (line 18) | ErrNoTopic Error = "topic not found" constant ErrNoPartition (line 22) | ErrNoPartition Error = "topic partition not found" constant ErrNoLeader (line 27) | ErrNoLeader Error = "topic partition has no leader" constant ErrNoRecord (line 35) | ErrNoRecord Error = "record set contains no records" constant ErrNoReset (line 39) | ErrNoReset Error = "record sequence does not support reset" type TopicError (line 42) | type TopicError struct method Error (line 55) | func (e *TopicError) Error() string { method Unwrap (line 59) | func (e *TopicError) Unwrap() error { function NewTopicError (line 47) | func NewTopicError(topic string, err error) *TopicError { function NewErrNoTopic (line 51) | func NewErrNoTopic(topic string) *TopicError { type TopicPartitionError (line 63) | type TopicPartitionError struct method Error (line 85) | func (e *TopicPartitionError) Error() string { method Unwrap (line 89) | func (e *TopicPartitionError) Unwrap() error { function NewTopicPartitionError (line 69) | func NewTopicPartitionError(topic string, partition int32, err error) *T... function NewErrNoPartition (line 77) | func NewErrNoPartition(topic string, partition int32) *TopicPartitionErr... function NewErrNoLeader (line 81) | func NewErrNoLeader(topic string, partition int32) *TopicPartitionError { FILE: protocol/fetch/fetch.go function init (line 9) | func init() { type Request (line 13) | type Request struct method ApiKey (line 26) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.Fetch } method Broker (line 28) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestTopic (line 60) | type RequestTopic struct type RequestPartition (line 65) | type RequestPartition struct type RequestForgottenTopic (line 73) | type RequestForgottenTopic struct type Response (line 78) | type Response struct method ApiKey (line 85) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Fetch } type ResponseTopic (line 87) | type ResponseTopic struct type ResponsePartition (line 92) | type ResponsePartition struct type ResponseTransaction (line 103) | type ResponseTransaction struct type Error (line 112) | type Error struct method Error (line 120) | func (e *Error) Error() string { method Unwrap (line 124) | func (e *Error) Unwrap() error { function NewError (line 116) | func NewError(err error) *Error { FILE: protocol/fetch/fetch_test.go constant v0 (line 13) | v0 = 0 constant v11 (line 14) | v11 = 11 function TestFetchRequest (line 17) | func TestFetchRequest(t *testing.T) { function TestFetchResponse (line 37) | func TestFetchResponse(t *testing.T) { function BenchmarkFetchResponse (line 93) | func BenchmarkFetchResponse(b *testing.B) { FILE: protocol/findcoordinator/findcoordinator.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 14) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.FindCoord... type Response (line 16) | type Response struct method ApiKey (line 25) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.FindCoor... FILE: protocol/heartbeat/heartbeat.go function init (line 5) | func init() { type Request (line 10) | type Request struct method ApiKey (line 21) | func (r *Request) ApiKey() protocol.ApiKey { type Response (line 25) | type Response struct method ApiKey (line 34) | func (r *Response) ApiKey() protocol.ApiKey { FILE: protocol/heartbeat/heartbeat_test.go function TestHeartbeatRequest (line 10) | func TestHeartbeatRequest(t *testing.T) { function TestHeartbeatResponse (line 30) | func TestHeartbeatResponse(t *testing.T) { FILE: protocol/incrementalalterconfigs/incrementalalterconfigs.go constant resourceTypeBroker (line 11) | resourceTypeBroker int8 = 4 function init (line 14) | func init() { type Request (line 19) | type Request struct method ApiKey (line 36) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.Increment... method Broker (line 38) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestResource (line 24) | type RequestResource struct type RequestConfig (line 30) | type RequestConfig struct type Response (line 67) | type Response struct method ApiKey (line 79) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Incremen... type ResponseAlterResponse (line 72) | type ResponseAlterResponse struct FILE: protocol/incrementalalterconfigs/incrementalalterconfigs_test.go constant resourceTypeTopic (line 11) | resourceTypeTopic int8 = 2 constant resourceTypeBroker (line 12) | resourceTypeBroker int8 = 4 function TestMetadataRequestBroker (line 15) | func TestMetadataRequestBroker(t *testing.T) { FILE: protocol/initproducerid/initproducerid.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 20) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.InitProdu... method Transaction (line 22) | func (r *Request) Transaction() string { return r.TransactionalID } type Response (line 26) | type Response struct method ApiKey (line 37) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.InitProd... FILE: protocol/initproducerid/initproducerid_test.go function TestInitProducerIDRequest (line 10) | func TestInitProducerIDRequest(t *testing.T) { function TestInitProducerIDResponse (line 31) | func TestInitProducerIDResponse(t *testing.T) { FILE: protocol/joingroup/joingroup.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 32) | func (r *Request) ApiKey() protocol.ApiKey { method Group (line 36) | func (r *Request) Group() string { return r.GroupID } type RequestProtocol (line 23) | type RequestProtocol struct type Response (line 40) | type Response struct method ApiKey (line 67) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.JoinGroup } type ResponseMember (line 55) | type ResponseMember struct type ResponseMemberMetadata (line 65) | type ResponseMemberMetadata struct FILE: protocol/joingroup/joingroup_test.go function TestJoinGroupReq (line 10) | func TestJoinGroupReq(t *testing.T) { function TestJoinGroupResp (line 64) | func TestJoinGroupResp(t *testing.T) { FILE: protocol/leavegroup/leavegroup.go function init (line 5) | func init() { type Request (line 9) | type Request struct method Prepare (line 19) | func (r *Request) Prepare(apiVersion int16) { method ApiKey (line 36) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.LeaveGroup } method Group (line 38) | func (r *Request) Group() string { return r.GroupID } type RequestMember (line 27) | type RequestMember struct type Response (line 45) | type Response struct method ApiKey (line 65) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.LeaveGro... type ResponseMember (line 55) | type ResponseMember struct FILE: protocol/leavegroup/leavegroup_test.go function TestLeaveGroupReq (line 10) | func TestLeaveGroupReq(t *testing.T) { function TestLeaveGroupResp (line 35) | func TestLeaveGroupResp(t *testing.T) { FILE: protocol/listgroups/listgroups.go function init (line 7) | func init() { type Request (line 12) | type Request struct method ApiKey (line 17) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.ListGroups } method Broker (line 19) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... method Split (line 23) | func (r *Request) Split(cluster protocol.Cluster) ( type Response (line 37) | type Response struct method ApiKey (line 51) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.ListGrou... method Merge (line 53) | func (r *Response) Merge(requests []protocol.Message, results []interf... type ResponseGroup (line 43) | type ResponseGroup struct FILE: protocol/listoffsets/listoffsets.go function init (line 9) | func init() { type Request (line 13) | type Request struct method ApiKey (line 35) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.ListOffse... method Broker (line 37) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... method Split (line 52) | func (r *Request) Split(cluster protocol.Cluster) ([]protocol.Message,... type RequestTopic (line 19) | type RequestTopic struct type RequestPartition (line 24) | type RequestPartition struct type Response (line 94) | type Response struct method ApiKey (line 112) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.ListOffs... method Merge (line 114) | func (r *Response) Merge(requests []protocol.Message, results []interf... type ResponseTopic (line 99) | type ResponseTopic struct type ResponsePartition (line 104) | type ResponsePartition struct FILE: protocol/listoffsets/listoffsets_test.go constant v1 (line 11) | v1 = 1 constant v4 (line 12) | v4 = 4 function TestListOffsetsRequest (line 15) | func TestListOffsetsRequest(t *testing.T) { function TestListOffsetsResponse (line 54) | func TestListOffsetsResponse(t *testing.T) { FILE: protocol/listpartitionreassignments/listpartitionreassignments.go function init (line 5) | func init() { type Request (line 11) | type Request struct method ApiKey (line 29) | func (r *Request) ApiKey() protocol.ApiKey { method Broker (line 33) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... type RequestTopic (line 20) | type RequestTopic struct type Response (line 37) | type Response struct method ApiKey (line 68) | func (r *Response) ApiKey() protocol.ApiKey { type ResponseTopic (line 48) | type ResponseTopic struct type ResponsePartition (line 57) | type ResponsePartition struct FILE: protocol/listpartitionreassignments/listpartitionreassignments_test.go constant v0 (line 11) | v0 = 0 function TestListPartitionReassignmentsRequest (line 14) | func TestListPartitionReassignmentsRequest(t *testing.T) { function TestListPartitionReassignmentsResponse (line 25) | func TestListPartitionReassignmentsResponse(t *testing.T) { FILE: protocol/metadata/metadata.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 16) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.Metadata } type Response (line 18) | type Response struct method ApiKey (line 27) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Metadata } type ResponseBroker (line 29) | type ResponseBroker struct type ResponseTopic (line 36) | type ResponseTopic struct type ResponsePartition (line 44) | type ResponsePartition struct FILE: protocol/metadata/metadata_test.go constant v0 (line 11) | v0 = 0 constant v1 (line 12) | v1 = 1 constant v4 (line 13) | v4 = 4 constant v8 (line 14) | v8 = 8 function TestMetadataRequest (line 17) | func TestMetadataRequest(t *testing.T) { function TestMetadataResponse (line 35) | func TestMetadataResponse(t *testing.T) { function BenchmarkMetadataRequest (line 146) | func BenchmarkMetadataRequest(b *testing.B) { function BenchmarkMetadataResponse (line 155) | func BenchmarkMetadataResponse(b *testing.B) { FILE: protocol/offsetcommit/offsetcommit.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 18) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.OffsetCom... method Group (line 20) | func (r *Request) Group() string { return r.GroupID } type RequestTopic (line 22) | type RequestTopic struct type RequestPartition (line 27) | type RequestPartition struct type Response (line 39) | type Response struct method ApiKey (line 44) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.OffsetCo... type ResponseTopic (line 46) | type ResponseTopic struct type ResponsePartition (line 51) | type ResponsePartition struct FILE: protocol/offsetcommit/offsetcommit_test.go function TestOffsetCommitRequest (line 10) | func TestOffsetCommitRequest(t *testing.T) { function TestOffsetCommitResponse (line 183) | func TestOffsetCommitResponse(t *testing.T) { FILE: protocol/offsetdelete/offsetdelete.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 14) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.OffsetDel... method Group (line 16) | func (r *Request) Group() string { return r.GroupID } type RequestTopic (line 18) | type RequestTopic struct type RequestPartition (line 23) | type RequestPartition struct type Response (line 31) | type Response struct method ApiKey (line 37) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.OffsetDe... type ResponseTopic (line 39) | type ResponseTopic struct type ResponsePartition (line 44) | type ResponsePartition struct FILE: protocol/offsetdelete/offsetdelete_test.go function TestOffsetDeleteRequest (line 10) | func TestOffsetDeleteRequest(t *testing.T) { function TestOffsetDeleteResponse (line 31) | func TestOffsetDeleteResponse(t *testing.T) { FILE: protocol/offsetfetch/offsetfetch.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 14) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.OffsetFet... method Group (line 16) | func (r *Request) Group() string { return r.GroupID } type RequestTopic (line 18) | type RequestTopic struct type Response (line 27) | type Response struct method ApiKey (line 33) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.OffsetFe... type ResponseTopic (line 35) | type ResponseTopic struct type ResponsePartition (line 40) | type ResponsePartition struct FILE: protocol/produce/produce.go function init (line 9) | func init() { type Request (line 13) | type Request struct method ApiKey (line 20) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.Produce } method Broker (line 22) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... method Prepare (line 54) | func (r *Request) Prepare(apiVersion int16) { method HasResponse (line 87) | func (r *Request) HasResponse() bool { type RequestTopic (line 91) | type RequestTopic struct type RequestPartition (line 96) | type RequestPartition struct type Response (line 101) | type Response struct method ApiKey (line 106) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.Produce } type ResponseTopic (line 108) | type ResponseTopic struct type ResponsePartition (line 113) | type ResponsePartition struct type ResponseError (line 123) | type ResponseError struct type Error (line 133) | type Error struct method Error (line 141) | func (e *Error) Error() string { method Unwrap (line 145) | func (e *Error) Unwrap() error { function NewError (line 137) | func NewError(err error) *Error { FILE: protocol/produce/produce_test.go constant v0 (line 13) | v0 = 0 constant v3 (line 14) | v3 = 3 constant v5 (line 15) | v5 = 5 constant v8 (line 16) | v8 = 8 function TestProduceRequest (line 19) | func TestProduceRequest(t *testing.T) { function TestProduceResponse (line 156) | func TestProduceResponse(t *testing.T) { function BenchmarkProduceRequest (line 206) | func BenchmarkProduceRequest(b *testing.B) { FILE: protocol/protocol.go type Message (line 18) | type Message interface type ApiKey (line 22) | type ApiKey method String (line 24) | func (k ApiKey) String() string { method MinVersion (line 31) | func (k ApiKey) MinVersion() int16 { return k.apiType().minVersion() } method MaxVersion (line 33) | func (k ApiKey) MaxVersion() int16 { return k.apiType().maxVersion() } method SelectVersion (line 35) | func (k ApiKey) SelectVersion(minVersion, maxVersion int16) int16 { method apiType (line 48) | func (k ApiKey) apiType() apiType { constant Produce (line 56) | Produce ApiKey = 0 constant Fetch (line 57) | Fetch ApiKey = 1 constant ListOffsets (line 58) | ListOffsets ApiKey = 2 constant Metadata (line 59) | Metadata ApiKey = 3 constant LeaderAndIsr (line 60) | LeaderAndIsr ApiKey = 4 constant StopReplica (line 61) | StopReplica ApiKey = 5 constant UpdateMetadata (line 62) | UpdateMetadata ApiKey = 6 constant ControlledShutdown (line 63) | ControlledShutdown ApiKey = 7 constant OffsetCommit (line 64) | OffsetCommit ApiKey = 8 constant OffsetFetch (line 65) | OffsetFetch ApiKey = 9 constant FindCoordinator (line 66) | FindCoordinator ApiKey = 10 constant JoinGroup (line 67) | JoinGroup ApiKey = 11 constant Heartbeat (line 68) | Heartbeat ApiKey = 12 constant LeaveGroup (line 69) | LeaveGroup ApiKey = 13 constant SyncGroup (line 70) | SyncGroup ApiKey = 14 constant DescribeGroups (line 71) | DescribeGroups ApiKey = 15 constant ListGroups (line 72) | ListGroups ApiKey = 16 constant SaslHandshake (line 73) | SaslHandshake ApiKey = 17 constant ApiVersions (line 74) | ApiVersions ApiKey = 18 constant CreateTopics (line 75) | CreateTopics ApiKey = 19 constant DeleteTopics (line 76) | DeleteTopics ApiKey = 20 constant DeleteRecords (line 77) | DeleteRecords ApiKey = 21 constant InitProducerId (line 78) | InitProducerId ApiKey = 22 constant OffsetForLeaderEpoch (line 79) | OffsetForLeaderEpoch ApiKey = 23 constant AddPartitionsToTxn (line 80) | AddPartitionsToTxn ApiKey = 24 constant AddOffsetsToTxn (line 81) | AddOffsetsToTxn ApiKey = 25 constant EndTxn (line 82) | EndTxn ApiKey = 26 constant WriteTxnMarkers (line 83) | WriteTxnMarkers ApiKey = 27 constant TxnOffsetCommit (line 84) | TxnOffsetCommit ApiKey = 28 constant DescribeAcls (line 85) | DescribeAcls ApiKey = 29 constant CreateAcls (line 86) | CreateAcls ApiKey = 30 constant DeleteAcls (line 87) | DeleteAcls ApiKey = 31 constant DescribeConfigs (line 88) | DescribeConfigs ApiKey = 32 constant AlterConfigs (line 89) | AlterConfigs ApiKey = 33 constant AlterReplicaLogDirs (line 90) | AlterReplicaLogDirs ApiKey = 34 constant DescribeLogDirs (line 91) | DescribeLogDirs ApiKey = 35 constant SaslAuthenticate (line 92) | SaslAuthenticate ApiKey = 36 constant CreatePartitions (line 93) | CreatePartitions ApiKey = 37 constant CreateDelegationToken (line 94) | CreateDelegationToken ApiKey = 38 constant RenewDelegationToken (line 95) | RenewDelegationToken ApiKey = 39 constant ExpireDelegationToken (line 96) | ExpireDelegationToken ApiKey = 40 constant DescribeDelegationToken (line 97) | DescribeDelegationToken ApiKey = 41 constant DeleteGroups (line 98) | DeleteGroups ApiKey = 42 constant ElectLeaders (line 99) | ElectLeaders ApiKey = 43 constant IncrementalAlterConfigs (line 100) | IncrementalAlterConfigs ApiKey = 44 constant AlterPartitionReassignments (line 101) | AlterPartitionReassignments ApiKey = 45 constant ListPartitionReassignments (line 102) | ListPartitionReassignments ApiKey = 46 constant OffsetDelete (line 103) | OffsetDelete ApiKey = 47 constant DescribeClientQuotas (line 104) | DescribeClientQuotas ApiKey = 48 constant AlterClientQuotas (line 105) | AlterClientQuotas ApiKey = 49 constant DescribeUserScramCredentials (line 106) | DescribeUserScramCredentials ApiKey = 50 constant AlterUserScramCredentials (line 107) | AlterUserScramCredentials ApiKey = 51 constant numApis (line 109) | numApis = 52 type messageType (line 167) | type messageType struct method new (line 175) | func (t *messageType) new() Message { type apiType (line 179) | type apiType struct method minVersion (line 184) | func (t apiType) minVersion() int16 { method maxVersion (line 191) | func (t apiType) maxVersion() int16 { function Register (line 202) | func Register(req, res Message) { type OverrideTypeMessage (line 218) | type OverrideTypeMessage interface type OverrideTypeKey (line 222) | type OverrideTypeKey constant RawProduceOverride (line 225) | RawProduceOverride OverrideTypeKey = 0 function RegisterOverride (line 230) | func RegisterOverride(req, res Message, key OverrideTypeKey) { function typesOf (line 247) | func typesOf(v interface{}) []messageType { function makeTypes (line 251) | func makeTypes(t reflect.Type) []messageType { type structTag (line 291) | type structTag struct function forEachStructTag (line 299) | func forEachStructTag(tag string, do func(structTag) bool) { function forEach (line 356) | func forEach(s string, sep byte, do func(string) bool) bool { function forEachStructField (line 372) | func forEachStructField(t reflect.Type, do func(reflect.Type, index, str... function parseVersion (line 389) | func parseVersion(s string) (int16, error) { function dontExpectEOF (line 403) | func dontExpectEOF(err error) error { type Broker (line 415) | type Broker struct method String (line 422) | func (b Broker) String() string { method Format (line 426) | func (b Broker) Format(w fmt.State, v rune) { function itoa (line 443) | func itoa(i int32) string { type Topic (line 447) | type Topic struct type Partition (line 453) | type Partition struct type RawExchanger (line 467) | type RawExchanger interface type BrokerMessage (line 480) | type BrokerMessage interface type GroupMessage (line 489) | type GroupMessage interface type TransactionalMessage (line 497) | type TransactionalMessage interface type PreparedMessage (line 505) | type PreparedMessage interface type Splitter (line 513) | type Splitter interface type Merger (line 523) | type Merger interface function Result (line 532) | func Result(r interface{}) (Message, error) { FILE: protocol/protocol_test.go type testType (line 10) | type testType struct type testSubType (line 20) | type testSubType struct function TestMakeFlexibleTypes (line 24) | func TestMakeFlexibleTypes(t *testing.T) { function TestEncodeDecodeFlexibleType (line 51) | func TestEncodeDecodeFlexibleType(t *testing.T) { function TestVarInts (line 153) | func TestVarInts(t *testing.T) { function TestFloat64 (line 284) | func TestFloat64(t *testing.T) { FILE: protocol/prototest/bytes.go function Bytes (line 8) | func Bytes(b []byte) protocol.Bytes { function String (line 13) | func String(s string) protocol.Bytes { FILE: protocol/prototest/prototest.go function deepEqual (line 13) | func deepEqual(x1, x2 interface{}) bool { function deepEqualValue (line 38) | func deepEqualValue(v1, v2 reflect.Value) bool { function deepEqualPtr (line 66) | func deepEqualPtr(v1, v2 reflect.Value) bool { function deepEqualStruct (line 73) | func deepEqualStruct(v1, v2 reflect.Value) bool { function deepEqualSlice (line 95) | func deepEqualSlice(v1, v2 reflect.Value) bool { function deepEqualBytes (line 122) | func deepEqualBytes(s1, s2 protocol.Bytes) bool { function deepEqualRecords (line 152) | func deepEqualRecords(r1, r2 protocol.RecordReader) bool { function deepEqualRecord (line 167) | func deepEqualRecord(r1, r2 *protocol.Record) bool { FILE: protocol/prototest/reflect.go function closeMessage (line 17) | func closeMessage(m protocol.Message) { function load (line 37) | func load(v interface{}) (reset func()) { function loadValue (line 41) | func loadValue(v reflect.Value) (reset func()) { function forEachField (line 70) | func forEachField(v reflect.Value, do func(reflect.Value)) { type memoryRecord (line 94) | type memoryRecord struct method Record (line 102) | func (m *memoryRecord) Record() protocol.Record { function makeRecords (line 112) | func makeRecords(memoryRecords []memoryRecord) []protocol.Record { function loadRecords (line 120) | func loadRecords(r protocol.RecordReader) []memoryRecord { function readAll (line 141) | func readAll(bytes protocol.Bytes) []byte { FILE: protocol/prototest/request.go function TestRequest (line 14) | func TestRequest(t *testing.T, version int16, msg protocol.Message) { function TestRequestWithOverride (line 51) | func TestRequestWithOverride(t *testing.T, version int16, msg protocol.M... function BenchmarkRequest (line 82) | func BenchmarkRequest(b *testing.B, version int16, msg protocol.Message) { FILE: protocol/prototest/response.go function TestResponse (line 14) | func TestResponse(t *testing.T, version int16, msg protocol.Message) { function BenchmarkResponse (line 44) | func BenchmarkResponse(b *testing.B, version int16, msg protocol.Message) { FILE: protocol/rawproduce/rawproduce.go function init (line 10) | func init() { type Request (line 16) | type Request struct method ApiKey (line 23) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.Produce } method TypeKey (line 25) | func (r *Request) TypeKey() protocol.OverrideTypeKey { return protocol... method Broker (line 27) | func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, e... method HasResponse (line 59) | func (r *Request) HasResponse() bool { type RequestTopic (line 63) | type RequestTopic struct type RequestPartition (line 68) | type RequestPartition struct type Error (line 77) | type Error struct method Error (line 85) | func (e *Error) Error() string { method Unwrap (line 89) | func (e *Error) Unwrap() error { function NewError (line 81) | func NewError(err error) *Error { FILE: protocol/rawproduce/rawproduce_test.go constant v0 (line 14) | v0 = 0 constant v3 (line 15) | v3 = 3 constant v5 (line 16) | v5 = 5 function TestRawProduceRequest (line 19) | func TestRawProduceRequest(t *testing.T) { function NewRawRecordSet (line 133) | func NewRawRecordSet(reader protocol.RecordReader, version int8, attr pr... function BenchmarkProduceRequest (line 143) | func BenchmarkProduceRequest(b *testing.B) { FILE: protocol/record.go type Attributes (line 14) | type Attributes method Compression (line 25) | func (a Attributes) Compression() compress.Compression { method Transactional (line 29) | func (a Attributes) Transactional() bool { method Control (line 33) | func (a Attributes) Control() bool { method String (line 37) | func (a Attributes) String() string { constant Gzip (line 17) | Gzip Attributes = Attributes(compress.Gzip) constant Snappy (line 18) | Snappy Attributes = Attributes(compress.Snappy) constant Lz4 (line 19) | Lz4 Attributes = Attributes(compress.Lz4) constant Zstd (line 20) | Zstd Attributes = Attributes(compress.Zstd) constant Transactional (line 21) | Transactional Attributes = 1 << 4 constant Control (line 22) | Control Attributes = 1 << 5 type Header (line 49) | type Header struct type Record (line 57) | type Record struct type RecordSet (line 86) | type RecordSet struct method ReadFrom (line 137) | func (rs *RecordSet) ReadFrom(r io.Reader) (int64, error) { method WriteTo (line 243) | func (rs *RecordSet) WriteTo(w io.Writer) (int64, error) { type bufferedReader (line 118) | type bufferedReader interface type bytesBuffer (line 126) | type bytesBuffer interface constant magicByteOffset (line 132) | magicByteOffset = 16 type RawRecordSet (line 297) | type RawRecordSet struct method ReadFrom (line 309) | func (rrs *RawRecordSet) ReadFrom(r io.Reader) (int64, error) { method WriteTo (line 327) | func (rrs *RawRecordSet) WriteTo(w io.Writer) (int64, error) { function makeTime (line 335) | func makeTime(t int64) time.Time { function timestamp (line 339) | func timestamp(t time.Time) int64 { function packUint32 (line 346) | func packUint32(u uint32) (b [4]byte) { function packUint64 (line 351) | func packUint64(u uint64) (b [8]byte) { FILE: protocol/record_batch.go type RecordReader (line 14) | type RecordReader interface function NewRecordReader (line 25) | func NewRecordReader(records ...Record) RecordReader { function MultiRecordReader (line 37) | func MultiRecordReader(batches ...RecordReader) RecordReader { function forEachRecord (line 50) | func forEachRecord(r RecordReader, f func(int, *Record) error) error { function handleRecord (line 67) | func handleRecord(i int, r *Record, f func(int, *Record) error) error { type recordReader (line 77) | type recordReader struct method ReadRecord (line 82) | func (r *recordReader) ReadRecord() (*Record, error) { type multiRecordReader (line 90) | type multiRecordReader struct method ReadRecord (line 95) | func (m *multiRecordReader) ReadRecord() (*Record, error) { type optimizedRecordReader (line 113) | type optimizedRecordReader struct method ReadRecord (line 120) | func (r *optimizedRecordReader) ReadRecord() (*Record, error) { type optimizedRecord (line 138) | type optimizedRecord struct method time (line 145) | func (r *optimizedRecord) time() time.Time { method key (line 149) | func (r *optimizedRecord) key() Bytes { method value (line 153) | func (r *optimizedRecord) value() Bytes { function makeBytes (line 157) | func makeBytes(ref *pageRef) Bytes { type emptyRecordReader (line 164) | type emptyRecordReader struct method ReadRecord (line 166) | func (emptyRecordReader) ReadRecord() (*Record, error) { return nil, i... type ControlRecord (line 169) | type ControlRecord struct method Key (line 214) | func (cr *ControlRecord) Key() Bytes { method Value (line 221) | func (cr *ControlRecord) Value() Bytes { method Record (line 225) | func (cr *ControlRecord) Record() Record { function ReadControlRecord (line 178) | func ReadControlRecord(r *Record) (*ControlRecord, error) { type ControlBatch (line 237) | type ControlBatch struct method ReadRecord (line 259) | func (c *ControlBatch) ReadRecord() (*Record, error) { method ReadControlRecord (line 263) | func (c *ControlBatch) ReadControlRecord() (*ControlRecord, error) { method Offset (line 277) | func (c *ControlBatch) Offset() int64 { method Version (line 281) | func (c *ControlBatch) Version() int { function NewControlBatch (line 249) | func NewControlBatch(records ...ControlRecord) *ControlBatch { type RecordBatch (line 287) | type RecordBatch struct method ReadRecord (line 297) | func (r *RecordBatch) ReadRecord() (*Record, error) { method Offset (line 301) | func (r *RecordBatch) Offset() int64 { method Version (line 305) | func (r *RecordBatch) Version() int { type MessageSet (line 311) | type MessageSet struct method ReadRecord (line 317) | func (m *MessageSet) ReadRecord() (*Record, error) { method Offset (line 321) | func (m *MessageSet) Offset() int64 { method Version (line 325) | func (m *MessageSet) Version() int { type RecordStream (line 332) | type RecordStream struct method ReadRecord (line 337) | func (s *RecordStream) ReadRecord() (*Record, error) { FILE: protocol/record_batch_test.go type memoryRecord (line 11) | type memoryRecord struct method Record (line 19) | func (m *memoryRecord) Record() Record { function makeRecords (line 29) | func makeRecords(memoryRecords []memoryRecord) []Record { function TestRecordReader (line 37) | func TestRecordReader(t *testing.T) { function TestMultiRecordReader (line 67) | func TestMultiRecordReader(t *testing.T) { function TestControlRecord (line 100) | func TestControlRecord(t *testing.T) { function assertRecords (line 141) | func assertRecords(t *testing.T, r1, r2 RecordReader) { function equalRecords (line 165) | func equalRecords(r1, r2 *Record) bool { function readAll (line 191) | func readAll(bytes Bytes) []byte { FILE: protocol/record_v1.go function readMessage (line 11) | func readMessage(b *pageBuffer, d *decoder) (attributes int8, baseOffset... method readFromVersion1 (line 55) | func (rs *RecordSet) readFromVersion1(d *decoder) error { method writeToVersion1 (line 152) | func (rs *RecordSet) writeToVersion1(buffer *pageBuffer, bufferOffset in... type message (line 232) | type message struct method ReadRecord (line 237) | func (m *message) ReadRecord() (*Record, error) { FILE: protocol/record_v2.go method readFromVersion2 (line 10) | func (rs *RecordSet) readFromVersion2(d *decoder) error { method writeToVersion2 (line 191) | func (rs *RecordSet) writeToVersion2(buffer *pageBuffer, bufferOffset in... FILE: protocol/reflect.go type index (line 10) | type index type _type (line 12) | type _type struct function typeOf (line 14) | func typeOf(x interface{}) _type { function elemTypeOf (line 18) | func elemTypeOf(x interface{}) _type { function makeType (line 22) | func makeType(t reflect.Type) _type { type value (line 26) | type value struct method bool (line 38) | func (v value) bool() bool { return v.val.Bool() } method int8 (line 40) | func (v value) int8() int8 { return int8(v.int64()) } method int16 (line 42) | func (v value) int16() int16 { return int16(v.int64()) } method int32 (line 44) | func (v value) int32() int32 { return int32(v.int64()) } method int64 (line 46) | func (v value) int64() int64 { return v.val.Int() } method float64 (line 48) | func (v value) float64() float64 { return v.val.Float() } method string (line 50) | func (v value) string() string { return v.val.String() } method bytes (line 52) | func (v value) bytes() []byte { return v.val.Bytes() } method iface (line 54) | func (v value) iface(t reflect.Type) interface{} { return v.val.Addr()... method array (line 56) | func (v value) array(t reflect.Type) array { return array(v) } method setBool (line 58) | func (v value) setBool(b bool) { v.val.SetBool(b) } method setInt8 (line 60) | func (v value) setInt8(i int8) { v.setInt64(int64(i)) } method setInt16 (line 62) | func (v value) setInt16(i int16) { v.setInt64(int64(i)) } method setInt32 (line 64) | func (v value) setInt32(i int32) { v.setInt64(int64(i)) } method setInt64 (line 66) | func (v value) setInt64(i int64) { v.val.SetInt(i) } method setFloat64 (line 68) | func (v value) setFloat64(f float64) { v.val.SetFloat(f) } method setString (line 70) | func (v value) setString(s string) { v.val.SetString(s) } method setBytes (line 72) | func (v value) setBytes(b []byte) { v.val.SetBytes(b) } method setArray (line 74) | func (v value) setArray(a array) { method fieldByIndex (line 82) | func (v value) fieldByIndex(i index) value { function nonAddressableValueOf (line 30) | func nonAddressableValueOf(x interface{}) value { function valueOf (line 34) | func valueOf(x interface{}) value { type array (line 86) | type array struct method index (line 94) | func (a array) index(i int) value { return value{val: a.val.Index(i)} } method length (line 96) | func (a array) length() int { return a.val.Len() } method isNil (line 98) | func (a array) isNil() bool { return a.val.IsNil() } function makeArray (line 90) | func makeArray(t reflect.Type, n int) array { function indexOf (line 100) | func indexOf(s reflect.StructField) index { return index(s.Index) } function bytesToString (line 102) | func bytesToString(b []byte) string { return string(b) } FILE: protocol/reflect_unsafe.go type iface (line 11) | type iface struct type slice (line 16) | type slice struct type index (line 22) | type index type _type (line 24) | type _type struct function typeOf (line 28) | func typeOf(x interface{}) _type { function elemTypeOf (line 32) | func elemTypeOf(x interface{}) _type { function makeType (line 36) | func makeType(t reflect.Type) _type { type value (line 40) | type value struct method bool (line 56) | func (v value) bool() bool { return *(*bool)(v.ptr) } method int8 (line 58) | func (v value) int8() int8 { return *(*int8)(v.ptr) } method int16 (line 60) | func (v value) int16() int16 { return *(*int16)(v.ptr) } method int32 (line 62) | func (v value) int32() int32 { return *(*int32)(v.ptr) } method int64 (line 64) | func (v value) int64() int64 { return *(*int64)(v.ptr) } method float64 (line 66) | func (v value) float64() float64 { return *(*float64)(v.ptr) } method string (line 68) | func (v value) string() string { return *(*string)(v.ptr) } method bytes (line 70) | func (v value) bytes() []byte { return *(*[]byte)(v.ptr) } method iface (line 72) | func (v value) iface(t reflect.Type) interface{} { method array (line 79) | func (v value) array(t reflect.Type) array { method setBool (line 87) | func (v value) setBool(b bool) { *(*bool)(v.ptr) = b } method setInt8 (line 89) | func (v value) setInt8(i int8) { *(*int8)(v.ptr) = i } method setInt16 (line 91) | func (v value) setInt16(i int16) { *(*int16)(v.ptr) = i } method setInt32 (line 93) | func (v value) setInt32(i int32) { *(*int32)(v.ptr) = i } method setInt64 (line 95) | func (v value) setInt64(i int64) { *(*int64)(v.ptr) = i } method setFloat64 (line 97) | func (v value) setFloat64(f float64) { *(*float64)(v.ptr) = f } method setString (line 99) | func (v value) setString(s string) { *(*string)(v.ptr) = s } method setBytes (line 101) | func (v value) setBytes(b []byte) { *(*[]byte)(v.ptr) = b } method setArray (line 103) | func (v value) setArray(a array) { *(*slice)(v.ptr) = slice{ptr: a.ele... method fieldByIndex (line 105) | func (v value) fieldByIndex(i index) value { function nonAddressableValueOf (line 44) | func nonAddressableValueOf(x interface{}) value { function valueOf (line 48) | func valueOf(x interface{}) value { function makeValue (line 52) | func makeValue(t reflect.Type) value { type array (line 109) | type array struct method index (line 130) | func (a array) index(i int) value { method length (line 134) | func (a array) length() int { return a.len } method isNil (line 136) | func (a array) isNil() bool { return a.elem == nil } function makeArray (line 119) | func makeArray(t reflect.Type, n int) array { function indexOf (line 138) | func indexOf(s reflect.StructField) index { return index(s.Offset) } function bytesToString (line 140) | func bytesToString(b []byte) string { return *(*string)(unsafe.Pointer(&... function unsafe_NewArray (line 143) | func unsafe_NewArray(rtype unsafe.Pointer, length int) unsafe.Pointer FILE: protocol/request.go function ReadRequest (line 8) | func ReadRequest(r io.Reader) (apiVersion int16, correlationID int32, cl... function WriteRequest (line 72) | func WriteRequest(w io.Writer, apiVersion int16, correlationID int32, cl... FILE: protocol/response.go function ReadResponse (line 11) | func ReadResponse(r io.Reader, apiKey ApiKey, apiVersion int16) (correla... function WriteResponse (line 86) | func WriteResponse(w io.Writer, apiVersion int16, correlationID int32, m... constant tlsAlertByte (line 142) | tlsAlertByte byte = 0x15 function looksLikeUnexpectedTLS (line 148) | func looksLikeUnexpectedTLS(size int32) bool { FILE: protocol/response_test.go function TestReadResponseUnexpectedTLSDetection (line 11) | func TestReadResponseUnexpectedTLSDetection(t *testing.T) { FILE: protocol/roundtrip.go function RoundTrip (line 8) | func RoundTrip(rw io.ReadWriter, apiVersion int16, correlationID int32, ... function hasResponse (line 25) | func hasResponse(msg Message) bool { FILE: protocol/saslauthenticate/saslauthenticate.go function init (line 10) | func init() { type Request (line 14) | type Request struct method RawExchange (line 18) | func (r *Request) RawExchange(rw io.ReadWriter) (protocol.Message, err... method Required (line 25) | func (*Request) Required(versions map[protocol.ApiKey]int16) bool { method writeTo (line 30) | func (r *Request) writeTo(w io.Writer) error { method readResp (line 39) | func (r *Request) readResp(read io.Reader) (protocol.Message, error) { method ApiKey (line 55) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.SaslAuthe... type Response (line 57) | type Response struct method ApiKey (line 64) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.SaslAuth... FILE: protocol/saslhandshake/saslhandshake.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 13) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.SaslHands... type Response (line 15) | type Response struct method ApiKey (line 20) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.SaslHand... FILE: protocol/size.go function sizeOfVarString (line 7) | func sizeOfVarString(s string) int { function sizeOfVarNullBytes (line 11) | func sizeOfVarNullBytes(b []byte) int { function sizeOfVarNullBytesIface (line 19) | func sizeOfVarNullBytesIface(b Bytes) int { function sizeOfVarInt (line 27) | func sizeOfVarInt(i int64) int { function sizeOfUnsignedVarInt (line 31) | func sizeOfUnsignedVarInt(i uint64) int { FILE: protocol/syncgroup/syncgroup.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 32) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.SyncGroup } method Group (line 34) | func (r *Request) Group() string { return r.GroupID } type RequestAssignment (line 23) | type RequestAssignment struct type Response (line 38) | type Response struct method ApiKey (line 50) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.SyncGroup } FILE: protocol/syncgroup/syncgroup_test.go function TestSyncGroupReq (line 10) | func TestSyncGroupReq(t *testing.T) { function TestSyncGroupResp (line 63) | func TestSyncGroupResp(t *testing.T) { FILE: protocol/txnoffsetcommit/txnoffsetcommit.go function init (line 5) | func init() { type Request (line 9) | type Request struct method ApiKey (line 44) | func (r *Request) ApiKey() protocol.ApiKey { return protocol.TxnOffset... method Group (line 46) | func (r *Request) Group() string { return r.GroupID } type RequestTopic (line 24) | type RequestTopic struct type RequestPartition (line 33) | type RequestPartition struct type Response (line 50) | type Response struct method ApiKey (line 77) | func (r *Response) ApiKey() protocol.ApiKey { return protocol.TxnOffse... type ResponseTopic (line 59) | type ResponseTopic struct type ResponsePartition (line 68) | type ResponsePartition struct FILE: protocol/txnoffsetcommit/txnoffsetcommit_test.go function TestTxnOffsetCommitRequest (line 10) | func TestTxnOffsetCommitRequest(t *testing.T) { function TestTxnOffsetCommitResponse (line 152) | func TestTxnOffsetCommitResponse(t *testing.T) { FILE: protocol_test.go function TestApiVersionsFormat (line 11) | func TestApiVersionsFormat(t *testing.T) { function TestProtocol (line 34) | func TestProtocol(t *testing.T) { FILE: rawproduce.go type RawProduceRequest (line 16) | type RawProduceRequest struct method RawProduce (line 50) | func (c *Client) RawProduce(ctx context.Context, req *RawProduceRequest)... FILE: rawproduce_test.go function TestClientRawProduce (line 13) | func TestClientRawProduce(t *testing.T) { function TestClientRawProduceCompressed (line 48) | func TestClientRawProduceCompressed(t *testing.T) { function TestClientRawProduceNilRecords (line 83) | func TestClientRawProduceNilRecords(t *testing.T) { function TestClientRawProduceEmptyRecords (line 99) | func TestClientRawProduceEmptyRecords(t *testing.T) { function NewRawRecordSet (line 115) | func NewRawRecordSet(reader protocol.RecordReader, attr protocol.Attribu... FILE: read.go function peekRead (line 13) | func peekRead(r *bufio.Reader, sz int, n int, f func([]byte)) (int, erro... function readInt8 (line 25) | func readInt8(r *bufio.Reader, sz int, v *int8) (int, error) { function readInt16 (line 29) | func readInt16(r *bufio.Reader, sz int, v *int16) (int, error) { function readInt32 (line 33) | func readInt32(r *bufio.Reader, sz int, v *int32) (int, error) { function readInt64 (line 37) | func readInt64(r *bufio.Reader, sz int, v *int64) (int, error) { function readVarInt (line 41) | func readVarInt(r *bufio.Reader, sz int, v *int64) (remain int, err erro... function readBool (line 90) | func readBool(r *bufio.Reader, sz int, v *bool) (int, error) { function readString (line 94) | func readString(r *bufio.Reader, sz int, v *string) (int, error) { function readStringWith (line 101) | func readStringWith(r *bufio.Reader, sz int, cb func(*bufio.Reader, int,... function readNewString (line 117) | func readNewString(r *bufio.Reader, sz int, n int) (string, int, error) { function readBytes (line 122) | func readBytes(r *bufio.Reader, sz int, v *[]byte) (int, error) { function readBytesWith (line 129) | func readBytesWith(r *bufio.Reader, sz int, cb func(*bufio.Reader, int, ... function readNewBytes (line 144) | func readNewBytes(r *bufio.Reader, sz int, n int) ([]byte, int, error) { function readArrayLen (line 168) | func readArrayLen(r *bufio.Reader, sz int, n *int) (int, error) { function readArrayWith (line 178) | func readArrayWith(r *bufio.Reader, sz int, cb func(*bufio.Reader, int) ... function readStringArray (line 195) | func readStringArray(r *bufio.Reader, sz int, v *[]string) (remain int, ... function readMapStringInt32 (line 213) | func readMapStringInt32(r *bufio.Reader, sz int, v *map[string][]int32) ... function read (line 247) | func read(r *bufio.Reader, sz int, a interface{}) (int, error) { function readStruct (line 274) | func readStruct(r *bufio.Reader, sz int, v reflect.Value) (int, error) { function readSlice (line 284) | func readSlice(r *bufio.Reader, sz int, v reflect.Value) (int, error) { function readFetchResponseHeaderV2 (line 307) | func readFetchResponseHeaderV2(r *bufio.Reader, size int) (throttle int3... function readFetchResponseHeaderV5 (line 369) | func readFetchResponseHeaderV5(r *bufio.Reader, size int) (throttle int3... function readFetchResponseHeaderV10 (line 460) | func readFetchResponseHeaderV10(r *bufio.Reader, size int) (throttle int... FILE: read_test.go type VarIntTestCase (line 13) | type VarIntTestCase struct function TestReadVarInt (line 19) | func TestReadVarInt(t *testing.T) { function TestReadVarIntFailing (line 48) | func TestReadVarIntFailing(t *testing.T) { function TestReadStringArray (line 58) | func TestReadStringArray(t *testing.T) { function TestReadMapStringInt32 (line 85) | func TestReadMapStringInt32(t *testing.T) { function TestReadNewBytes (line 119) | func TestReadNewBytes(t *testing.T) { function BenchmarkWriteVarInt (line 177) | func BenchmarkWriteVarInt(b *testing.B) { function BenchmarkReadVarInt (line 185) | func BenchmarkReadVarInt(b *testing.B) { FILE: reader.go constant LastOffset (line 17) | LastOffset int64 = -1 constant FirstOffset (line 18) | FirstOffset int64 = -2 constant defaultCommitRetries (line 24) | defaultCommitRetries = 3 constant defaultFetchMinBytes (line 31) | defaultFetchMinBytes = 1 constant defaultReadBackoffMin (line 42) | defaultReadBackoffMin = 100 * time.Millisecond constant defaultReadBackoffMax (line 43) | defaultReadBackoffMax = 1 * time.Second type Reader (line 59) | type Reader struct method useConsumerGroup (line 97) | func (r *Reader) useConsumerGroup() bool { return r.config.GroupID != ... method getTopics (line 99) | func (r *Reader) getTopics() []string { method useSyncCommits (line 109) | func (r *Reader) useSyncCommits() bool { return r.config.CommitInterva... method unsubscribe (line 111) | func (r *Reader) unsubscribe() { method subscribe (line 124) | func (r *Reader) subscribe(allAssignments map[string][]PartitionAssign... method commitOffsetsWithRetry (line 147) | func (r *Reader) commitOffsetsWithRetry(gen *Generation, offsetStash o... method commitLoopImmediate (line 194) | func (r *Reader) commitLoopImmediate(ctx context.Context, gen *Generat... method commitLoopInterval (line 231) | func (r *Reader) commitLoopInterval(ctx context.Context, gen *Generati... method commitLoop (line 272) | func (r *Reader) commitLoop(ctx context.Context, gen *Generation) { method run (line 291) | func (r *Reader) run(cg *ConsumerGroup) { method Config (line 751) | func (r *Reader) Config() ReaderConfig { method Close (line 757) | func (r *Reader) Close() error { method ReadMessage (line 792) | func (r *Reader) ReadMessage(ctx context.Context) (Message, error) { method FetchMessage (line 815) | func (r *Reader) FetchMessage(ctx context.Context) (Message, error) { method CommitMessages (line 878) | func (r *Reader) CommitMessages(ctx context.Context, msgs ...Message) ... method ReadLag (line 926) | func (r *Reader) ReadLag(ctx context.Context) (lag int64, err error) { method Offset (line 990) | func (r *Reader) Offset() int64 { method Lag (line 1006) | func (r *Reader) Lag() int64 { method SetOffset (line 1025) | func (r *Reader) SetOffset(offset int64) error { method SetOffsetAt (line 1058) | func (r *Reader) SetOffsetAt(ctx context.Context, t time.Time) error { method Stats (line 1096) | func (r *Reader) Stats() ReaderStats { method getTopicPartitionOffset (line 1126) | func (r *Reader) getTopicPartitionOffset() map[topicPartition]int64 { method withLogger (line 1131) | func (r *Reader) withLogger(do func(Logger)) { method withErrorLogger (line 1137) | func (r *Reader) withErrorLogger(do func(Logger)) { method activateReadLag (line 1145) | func (r *Reader) activateReadLag() { method readLag (line 1155) | func (r *Reader) readLag(ctx context.Context) { method start (line 1181) | func (r *Reader) start(offsetsByPartition map[topicPartition]int64) { type offsetStash (line 169) | type offsetStash method merge (line 172) | func (o offsetStash) merge(commits []commit) { method reset (line 187) | func (o offsetStash) reset() { type ReaderConfig (line 352) | type ReaderConfig struct method Validate (line 528) | func (config *ReaderConfig) Validate() error { type ReaderStats (line 574) | type ReaderStats struct type readerStats (line 609) | type readerStats struct function NewReader (line 629) | func NewReader(config ReaderConfig) *Reader { type reader (line 1227) | type reader struct method run (line 1256) | func (r *reader) run(ctx context.Context, offset int64) { method initialize (line 1442) | func (r *reader) initialize(ctx context.Context, offset int64) (conn *... method read (line 1490) | func (r *reader) read(ctx context.Context, offset int64, conn *Conn) (... method readOffsets (line 1546) | func (r *reader) readOffsets(conn *Conn) (first, last int64, err error) { method sendMessage (line 1551) | func (r *reader) sendMessage(ctx context.Context, msg Message, waterma... method sendError (line 1560) | func (r *reader) sendError(ctx context.Context, err error) error { method withLogger (line 1569) | func (r *reader) withLogger(do func(Logger)) { method withErrorLogger (line 1575) | func (r *reader) withErrorLogger(do func(Logger)) { type readerMessage (line 1249) | type readerMessage struct function extractTopics (line 1585) | func extractTopics(members []GroupMember) []string { type humanOffset (line 1605) | type humanOffset method Format (line 1611) | func (offset humanOffset) Format(w fmt.State, _ rune) { function toHumanOffset (line 1607) | func toHumanOffset(v int64) humanOffset { FILE: reader_test.go function TestReader (line 21) | func TestReader(t *testing.T) { function testReaderReadCanceled (line 94) | func testReaderReadCanceled(t *testing.T, ctx context.Context, r *Reader) { function testReaderReadMessages (line 103) | func testReaderReadMessages(t *testing.T, ctx context.Context, r *Reader) { function testReaderSetSpecialOffsets (line 124) | func testReaderSetSpecialOffsets(t *testing.T, ctx context.Context, r *R... function testReaderSetRandomOffset (line 157) | func testReaderSetRandomOffset(t *testing.T, ctx context.Context, r *Rea... function testReaderSetOffsetAt (line 177) | func testReaderSetOffsetAt(t *testing.T, ctx context.Context, r *Reader) { function testReaderLag (line 214) | func testReaderLag(t *testing.T, ctx context.Context, r *Reader) { function testReaderReadLag (line 232) | func testReaderReadLag(t *testing.T, ctx context.Context, r *Reader) { function testReaderOutOfRangeGetsCanceled (line 254) | func testReaderOutOfRangeGetsCanceled(t *testing.T, ctx context.Context,... function createTopic (line 279) | func createTopic(t *testing.T, topic string, partitions int) { function waitForTopic (line 329) | func waitForTopic(ctx context.Context, t *testing.T, topic string) { function deleteTopic (line 373) | func deleteTopic(t *testing.T, topic ...string) { function TestReaderOnNonZeroPartition (line 398) | func TestReaderOnNonZeroPartition(t *testing.T) { function testReaderSetsTopicAndPartition (line 435) | func testReaderSetsTopicAndPartition(t *testing.T, ctx context.Context, ... function TestReadTruncatedMessages (line 468) | func TestReadTruncatedMessages(t *testing.T) { function makeTestSequence (line 492) | func makeTestSequence(n int) []Message { function prepareReader (line 504) | func prepareReader(t *testing.T, ctx context.Context, r *Reader, msgs ..... function BenchmarkReader (line 533) | func BenchmarkReader(b *testing.B) { function TestCloseLeavesGroup (line 581) | func TestCloseLeavesGroup(t *testing.T) { function testConsumerGroupImmediateClose (line 656) | func testConsumerGroupImmediateClose(t *testing.T, ctx context.Context, ... function testConsumerGroupSimple (line 662) | func testConsumerGroupSimple(t *testing.T, ctx context.Context, r *Reade... function TestReaderSetOffsetWhenConsumerGroupsEnabled (line 668) | func TestReaderSetOffsetWhenConsumerGroupsEnabled(t *testing.T) { function TestReaderOffsetWhenConsumerGroupsEnabled (line 675) | func TestReaderOffsetWhenConsumerGroupsEnabled(t *testing.T) { function TestReaderLagWhenConsumerGroupsEnabled (line 682) | func TestReaderLagWhenConsumerGroupsEnabled(t *testing.T) { function TestReaderReadLagReturnsZeroLagWhenConsumerGroupsEnabled (line 689) | func TestReaderReadLagReturnsZeroLagWhenConsumerGroupsEnabled(t *testing... function TestReaderPartitionWhenConsumerGroupsEnabled (line 702) | func TestReaderPartitionWhenConsumerGroupsEnabled(t *testing.T) { function TestExtractTopics (line 722) | func TestExtractTopics(t *testing.T) { function TestReaderConsumerGroup (line 792) | func TestReaderConsumerGroup(t *testing.T) { function testReaderConsumerGroupHandshake (line 893) | func testReaderConsumerGroupHandshake(t *testing.T, ctx context.Context,... function testReaderConsumerGroupVerifyOffsetCommitted (line 919) | func testReaderConsumerGroupVerifyOffsetCommitted(t *testing.T, ctx cont... function testReaderConsumerGroupVerifyPeriodicOffsetCommitter (line 941) | func testReaderConsumerGroupVerifyPeriodicOffsetCommitter(t *testing.T, ... function testReaderConsumerGroupVerifyCommitsOnClose (line 970) | func testReaderConsumerGroupVerifyCommitsOnClose(t *testing.T, ctx conte... function testReaderConsumerGroupReadContentAcrossPartitions (line 999) | func testReaderConsumerGroupReadContentAcrossPartitions(t *testing.T, ct... function testReaderConsumerGroupRebalance (line 1033) | func testReaderConsumerGroupRebalance(t *testing.T, ctx context.Context,... function testReaderConsumerGroupRebalanceAcrossTopics (line 1071) | func testReaderConsumerGroupRebalanceAcrossTopics(t *testing.T, ctx cont... function testReaderConsumerGroupRebalanceAcrossManyPartitionsAndConsumers (line 1122) | func testReaderConsumerGroupRebalanceAcrossManyPartitionsAndConsumers(t ... function TestOffsetStash (line 1177) | func TestOffsetStash(t *testing.T) { function TestValidateReader (line 1249) | func TestValidateReader(t *testing.T) { function TestCommitLoopImmediateFlushOnGenerationEnd (line 1273) | func TestCommitLoopImmediateFlushOnGenerationEnd(t *testing.T) { function TestCommitOffsetsWithRetry (line 1321) | func TestCommitOffsetsWithRetry(t *testing.T) { function TestRebalanceTooManyConsumers (line 1376) | func TestRebalanceTooManyConsumers(t *testing.T) { function TestConsumerGroupWithMissingTopic (line 1415) | func TestConsumerGroupWithMissingTopic(t *testing.T) { function TestConsumerGroupWithTopic (line 1465) | func TestConsumerGroupWithTopic(t *testing.T) { function TestConsumerGroupWithGroupTopicsSingle (line 1517) | func TestConsumerGroupWithGroupTopicsSingle(t *testing.T) { function TestConsumerGroupWithGroupTopicsMultiple (line 1571) | func TestConsumerGroupWithGroupTopicsMultiple(t *testing.T) { function getOffsets (line 1644) | func getOffsets(t *testing.T, config ReaderConfig) map[int]int64 { constant connTO (line 1685) | connTO = 1 * time.Second constant connTestTO (line 1686) | connTestTO = 2 * connTO function TestErrorCannotConnect (line 1689) | func TestErrorCannotConnect(t *testing.T) { function TestErrorCannotConnectGroupSubscription (line 1706) | func TestErrorCannotConnectGroupSubscription(t *testing.T) { function TestReaderTruncatedResponse (line 1730) | func TestReaderTruncatedResponse(t *testing.T) { function TestReaderReadCompactedMessage (line 1808) | func TestReaderReadCompactedMessage(t *testing.T) { function writeMessagesForCompactionCheck (line 1864) | func writeMessagesForCompactionCheck(t *testing.T, topic string, msgs []... function makeTestDuplicateSequence (line 1884) | func makeTestDuplicateSequence() []Message { function countKeys (line 1923) | func countKeys(msgs []Message) int { function createTopicWithCompaction (line 1931) | func createTopicWithCompaction(t *testing.T, topic string, partitions in... function testReaderTopicRecreated (line 1979) | func testReaderTopicRecreated(t *testing.T, ctx context.Context, r *Read... FILE: record.go function NewBytes (line 21) | func NewBytes(b []byte) Bytes { return protocol.NewBytes(b) } function ReadAll (line 24) | func ReadAll(b Bytes) ([]byte, error) { return protocol.ReadAll(b) } function NewRecordReader (line 40) | func NewRecordReader(records ...Record) RecordReader { FILE: recordbatch.go constant recordBatchHeaderSize (line 8) | recordBatchHeaderSize int32 = 0 + function recordBatchSize (line 23) | func recordBatchSize(msgs ...Message) (size int32) { function compressRecordBatch (line 36) | func compressRecordBatch(codec CompressionCodec, msgs ...Message) (compr... type recordBatch (line 55) | type recordBatch struct method writeTo (line 79) | func (r *recordBatch) writeTo(wb *writeBuffer) { function newRecordBatch (line 66) | func newRecordBatch(codec CompressionCodec, msgs ...Message) (r *recordB... function recordSize (line 98) | func recordSize(msg *Message, timestampDelta time.Duration, offsetDelta ... FILE: resolver.go type Resolver (line 10) | type Resolver interface type BrokerResolver (line 25) | type BrokerResolver interface function NewBrokerResolver (line 33) | func NewBrokerResolver(r *net.Resolver) BrokerResolver { type brokerResolver (line 37) | type brokerResolver struct method LookupBrokerIPAddr (line 41) | func (r brokerResolver) LookupBrokerIPAddr(ctx context.Context, broker... FILE: resource.go type ResourceType (line 9) | type ResourceType method String (line 23) | func (rt ResourceType) String() string { method MarshalText (line 42) | func (rt ResourceType) MarshalText() ([]byte, error) { method UnmarshalText (line 46) | func (rt *ResourceType) UnmarshalText(text []byte) error { constant ResourceTypeUnknown (line 12) | ResourceTypeUnknown ResourceType = 0 constant ResourceTypeAny (line 13) | ResourceTypeAny ResourceType = 1 constant ResourceTypeTopic (line 14) | ResourceTypeTopic ResourceType = 2 constant ResourceTypeGroup (line 15) | ResourceTypeGroup ResourceType = 3 constant ResourceTypeBroker (line 17) | ResourceTypeBroker ResourceType = 4 constant ResourceTypeCluster (line 18) | ResourceTypeCluster ResourceType = 4 constant ResourceTypeTransactionalID (line 19) | ResourceTypeTransactionalID ResourceType = 5 constant ResourceTypeDelegationToken (line 20) | ResourceTypeDelegationToken ResourceType = 6 type PatternType (line 68) | type PatternType method String (line 88) | func (pt PatternType) String() string { method MarshalText (line 103) | func (pt PatternType) MarshalText() ([]byte, error) { method UnmarshalText (line 107) | func (pt *PatternType) UnmarshalText(text []byte) error { constant PatternTypeUnknown (line 73) | PatternTypeUnknown PatternType = 0 constant PatternTypeAny (line 75) | PatternTypeAny PatternType = 1 constant PatternTypeMatch (line 77) | PatternTypeMatch PatternType = 2 constant PatternTypeLiteral (line 81) | PatternTypeLiteral PatternType = 3 constant PatternTypePrefixed (line 85) | PatternTypePrefixed PatternType = 4 FILE: resource_test.go function TestResourceTypeMarshal (line 5) | func TestResourceTypeMarshal(t *testing.T) { function TestResourceTypeBroker (line 25) | func TestResourceTypeBroker(t *testing.T) { function TestPatternTypeMarshal (line 43) | func TestPatternTypeMarshal(t *testing.T) { FILE: sasl/aws_msk_iam/msk_iam.go constant signVersion (line 21) | signVersion = "2020_10_22" constant signService (line 22) | signService = "kafka-cluster" constant signAction (line 23) | signAction = "kafka-cluster:Connect" constant signVersionKey (line 24) | signVersionKey = "version" constant signHostKey (line 25) | signHostKey = "host" constant signUserAgentKey (line 26) | signUserAgentKey = "user-agent" constant signActionKey (line 27) | signActionKey = "action" constant queryActionKey (line 28) | queryActionKey = "Action" type Mechanism (line 35) | type Mechanism struct method Name (line 46) | func (m *Mechanism) Name() string { method Start (line 65) | func (m *Mechanism) Start(ctx context.Context) (sess sasl.StateMachine... method Next (line 119) | func (m *Mechanism) Next(ctx context.Context, challenge []byte) (bool,... FILE: sasl/aws_msk_iam/msk_iam_test.go constant accessKeyId (line 17) | accessKeyId = "ACCESS_KEY" constant secretAccessKey (line 18) | secretAccessKey = "SECRET_KEY" function TestAwsMskIamMechanism (line 24) | func TestAwsMskIamMechanism(t *testing.T) { FILE: sasl/aws_msk_iam_v2/example_test.go function main (line 13) | func main() { FILE: sasl/aws_msk_iam_v2/msk_iam.go constant signAction (line 22) | signAction = "kafka-cluster:Connect" constant signPayload (line 23) | signPayload = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495... constant signService (line 24) | signService = "kafka-cluster" constant signVersion (line 25) | signVersion = "2020_10_22" constant signActionKey (line 26) | signActionKey = "action" constant signHostKey (line 27) | signHostKey = "host" constant signUserAgentKey (line 28) | signUserAgentKey = "user-agent" constant signVersionKey (line 29) | signVersionKey = "version" constant queryActionKey (line 30) | queryActionKey = "Action" constant queryExpiryKey (line 31) | queryExpiryKey = "X-Amz-Expires" type Mechanism (line 38) | type Mechanism struct method Name (line 51) | func (m *Mechanism) Name() string { method Next (line 55) | func (m *Mechanism) Next(ctx context.Context, challenge []byte) (bool,... method Start (line 78) | func (m *Mechanism) Start(ctx context.Context) (sess sasl.StateMachine... method preSign (line 89) | func (m *Mechanism) preSign(ctx context.Context) (map[string]string, e... function buildReq (line 113) | func buildReq(ctx context.Context, expiry time.Duration) (*http.Request,... function buildSignedMap (line 139) | func buildSignedMap(u *url.URL, header http.Header) map[string]string { function defaultExpiry (line 158) | func defaultExpiry(v time.Duration) time.Duration { function defaultSignTime (line 166) | func defaultSignTime(v time.Time) time.Time { function NewMechanism (line 174) | func NewMechanism(awsCfg aws.Config) *Mechanism { FILE: sasl/aws_msk_iam_v2/msk_iam_test.go constant accessKeyId (line 19) | accessKeyId = "ACCESS_KEY" constant secretAccessKey (line 20) | secretAccessKey = "SECRET_KEY" function TestAwsMskIamMechanism (line 26) | func TestAwsMskIamMechanism(t *testing.T) { function TestDefaultExpiry (line 111) | func TestDefaultExpiry(t *testing.T) { function TestDefaultSignTime (line 133) | func TestDefaultSignTime(t *testing.T) { function TestNewMechanism (line 153) | func TestNewMechanism(t *testing.T) { FILE: sasl/plain/plain.go type Mechanism (line 12) | type Mechanism struct method Name (line 17) | func (Mechanism) Name() string { method Start (line 21) | func (m Mechanism) Start(ctx context.Context) (sasl.StateMachine, []by... method Next (line 26) | func (m Mechanism) Next(ctx context.Context, challenge []byte) (bool, ... FILE: sasl/sasl.go type ctxKey (line 5) | type ctxKey struct type Mechanism (line 13) | type Mechanism interface type StateMachine (line 40) | type StateMachine interface type Metadata (line 49) | type Metadata struct function WithMetadata (line 57) | func WithMetadata(ctx context.Context, m *Metadata) context.Context { function MetadataFromContext (line 62) | func MetadataFromContext(ctx context.Context) *Metadata { FILE: sasl/sasl_test.go constant saslTestConnect (line 16) | saslTestConnect = "localhost:9093" constant saslTestTopic (line 17) | saslTestTopic = "test-writer-0" function TestSASL (line 20) | func TestSASL(t *testing.T) { function testConnect (line 91) | func testConnect(t *testing.T, mechanism sasl.Mechanism, success bool) { FILE: sasl/scram/scram.go type Algorithm (line 15) | type Algorithm interface type sha256Algo (line 23) | type sha256Algo struct method Name (line 25) | func (sha256Algo) Name() string { method Hash (line 29) | func (sha256Algo) Hash() hash.Hash { type sha512Algo (line 33) | type sha512Algo struct method Name (line 35) | func (sha512Algo) Name() string { method Hash (line 39) | func (sha512Algo) Hash() hash.Hash { type mechanism (line 48) | type mechanism struct method Name (line 75) | func (m *mechanism) Name() string { method Start (line 79) | func (m *mechanism) Start(ctx context.Context) (sasl.StateMachine, []b... type session (line 53) | type session struct method Next (line 88) | func (s *session) Next(ctx context.Context, challenge []byte) (bool, [... function Mechanism (line 62) | func Mechanism(algo Algorithm, username, password string) (sasl.Mechanis... FILE: saslauthenticate.go type saslAuthenticateRequestV0 (line 7) | type saslAuthenticateRequestV0 struct method size (line 12) | func (t saslAuthenticateRequestV0) size() int32 { method readFrom (line 16) | func (t *saslAuthenticateRequestV0) readFrom(r *bufio.Reader, sz int) ... method writeTo (line 20) | func (t saslAuthenticateRequestV0) writeTo(wb *writeBuffer) { type saslAuthenticateResponseV0 (line 24) | type saslAuthenticateResponseV0 struct method size (line 33) | func (t saslAuthenticateResponseV0) size() int32 { method writeTo (line 37) | func (t saslAuthenticateResponseV0) writeTo(wb *writeBuffer) { method readFrom (line 43) | func (t *saslAuthenticateResponseV0) readFrom(r *bufio.Reader, sz int)... FILE: saslauthenticate_test.go function TestSASLAuthenticateRequestV0 (line 10) | func TestSASLAuthenticateRequestV0(t *testing.T) { function TestSASLAuthenticateResponseV0 (line 35) | func TestSASLAuthenticateResponseV0(t *testing.T) { FILE: saslhandshake.go type saslHandshakeRequestV0 (line 9) | type saslHandshakeRequestV0 struct method size (line 14) | func (t saslHandshakeRequestV0) size() int32 { method readFrom (line 18) | func (t *saslHandshakeRequestV0) readFrom(r *bufio.Reader, sz int) (re... method writeTo (line 22) | func (t saslHandshakeRequestV0) writeTo(wb *writeBuffer) { type saslHandshakeResponseV0 (line 28) | type saslHandshakeResponseV0 struct method size (line 36) | func (t saslHandshakeResponseV0) size() int32 { method writeTo (line 40) | func (t saslHandshakeResponseV0) writeTo(wb *writeBuffer) { method readFrom (line 45) | func (t *saslHandshakeResponseV0) readFrom(r *bufio.Reader, sz int) (r... FILE: saslhandshake_test.go function TestSASLHandshakeRequestV0 (line 10) | func TestSASLHandshakeRequestV0(t *testing.T) { function TestSASLHandshakeResponseV0 (line 35) | func TestSASLHandshakeResponseV0(t *testing.T) { FILE: sizeof.go type sizable (line 5) | type sizable interface function sizeof (line 9) | func sizeof(a interface{}) int32 { function sizeofInt16 (line 31) | func sizeofInt16(_ int16) int32 { function sizeofInt32 (line 35) | func sizeofInt32(_ int32) int32 { function sizeofInt64 (line 39) | func sizeofInt64(_ int64) int32 { function sizeofString (line 43) | func sizeofString(s string) int32 { function sizeofNullableString (line 47) | func sizeofNullableString(s *string) int32 { function sizeofBytes (line 54) | func sizeofBytes(b []byte) int32 { function sizeofArray (line 58) | func sizeofArray(n int, f func(int) int32) int32 { function sizeofInt32Array (line 66) | func sizeofInt32Array(a []int32) int32 { function sizeofStringArray (line 70) | func sizeofStringArray(a []string) int32 { FILE: snappy/snappy.go constant Code (line 13) | Code = 2 constant Framed (line 14) | Framed = snappy.Framed constant Unframed (line 15) | Unframed = snappy.Unframed function NewCompressionCodec (line 18) | func NewCompressionCodec() *CompressionCodec { function NewCompressionCodecFraming (line 22) | func NewCompressionCodecFraming(framing Framing) *CompressionCodec { FILE: stats.go type SummaryStats (line 9) | type SummaryStats struct type DurationStats (line 18) | type DurationStats struct type counter (line 30) | type counter method ptr (line 32) | func (c *counter) ptr() *int64 { method observe (line 36) | func (c *counter) observe(v int64) { method snapshot (line 40) | func (c *counter) snapshot() int64 { type gauge (line 49) | type gauge method ptr (line 51) | func (g *gauge) ptr() *int64 { method observe (line 55) | func (g *gauge) observe(v int64) { method snapshot (line 59) | func (g *gauge) snapshot() int64 { type minimum (line 68) | type minimum method ptr (line 70) | func (m *minimum) ptr() *int64 { method observe (line 74) | func (m *minimum) observe(v int64) { method snapshot (line 89) | func (m *minimum) snapshot() int64 { type maximum (line 104) | type maximum method ptr (line 106) | func (m *maximum) ptr() *int64 { method observe (line 110) | func (m *maximum) observe(v int64) { method snapshot (line 125) | func (m *maximum) snapshot() int64 { type summary (line 135) | type summary struct method observe (line 149) | func (s *summary) observe(v int64) { method observeDuration (line 156) | func (s *summary) observeDuration(v time.Duration) { method snapshot (line 160) | func (s *summary) snapshot() SummaryStats { method snapshotDuration (line 180) | func (s *summary) snapshotDuration() DurationStats { function makeSummary (line 142) | func makeSummary() summary { FILE: syncgroup.go type SyncGroupRequest (line 17) | type SyncGroupRequest struct type SyncGroupRequestAssignment (line 44) | type SyncGroupRequestAssignment struct type SyncGroupResponse (line 53) | type SyncGroupResponse struct type GroupProtocolAssignment (line 74) | type GroupProtocolAssignment struct method SyncGroup (line 83) | func (c *Client) SyncGroup(ctx context.Context, req *SyncGroupRequest) (... type groupAssignment (line 157) | type groupAssignment struct method size (line 163) | func (t groupAssignment) size() int32 { method writeTo (line 173) | func (t groupAssignment) writeTo(wb *writeBuffer) { method readFrom (line 185) | func (t *groupAssignment) readFrom(r *bufio.Reader, size int) (remain ... method bytes (line 207) | func (t groupAssignment) bytes() []byte { type syncGroupRequestGroupAssignmentV0 (line 213) | type syncGroupRequestGroupAssignmentV0 struct method size (line 223) | func (t syncGroupRequestGroupAssignmentV0) size() int32 { method writeTo (line 228) | func (t syncGroupRequestGroupAssignmentV0) writeTo(wb *writeBuffer) { type syncGroupRequestV0 (line 233) | type syncGroupRequestV0 struct method size (line 246) | func (t syncGroupRequestV0) size() int32 { method writeTo (line 253) | func (t syncGroupRequestV0) writeTo(wb *writeBuffer) { type syncGroupResponseV0 (line 260) | type syncGroupResponseV0 struct method size (line 270) | func (t syncGroupResponseV0) size() int32 { method writeTo (line 275) | func (t syncGroupResponseV0) writeTo(wb *writeBuffer) { method readFrom (line 280) | func (t *syncGroupResponseV0) readFrom(r *bufio.Reader, sz int) (remai... FILE: syncgroup_test.go function TestClientSyncGroup (line 14) | func TestClientSyncGroup(t *testing.T) { function TestGroupAssignment (line 159) | func TestGroupAssignment(t *testing.T) { function TestGroupAssignmentReadsFromZeroSize (line 189) | func TestGroupAssignmentReadsFromZeroSize(t *testing.T) { function TestSyncGroupResponseV0 (line 205) | func TestSyncGroupResponseV0(t *testing.T) { function BenchmarkSyncGroupResponseV0 (line 231) | func BenchmarkSyncGroupResponseV0(t *testing.B) { FILE: testing/conn.go type ConnWaitGroup (line 9) | type ConnWaitGroup struct method Dial (line 14) | func (g *ConnWaitGroup) Dial(ctx context.Context, network, address str... type groupConn (line 23) | type groupConn struct method Close (line 29) | func (c *groupConn) Close() error { FILE: testing/version.go type semver (line 9) | type semver method atLeast (line 11) | func (v semver) atLeast(other semver) bool { function KafkaIsAtLeast (line 39) | func KafkaIsAtLeast(semver string) bool { function parseVersion (line 43) | func parseVersion(semver string) semver { FILE: testing/version_test.go function TestSemVersionAtLeastEmpty (line 7) | func TestSemVersionAtLeastEmpty(t *testing.T) { function TestSemVersionAtLeastShorter (line 14) | func TestSemVersionAtLeastShorter(t *testing.T) { FILE: time.go constant maxTimeout (line 9) | maxTimeout = time.Duration(math.MaxInt32) * time.Millisecond constant minTimeout (line 10) | minTimeout = time.Duration(math.MinInt32) * time.Millisecond constant defaultRTT (line 11) | defaultRTT = 1 * time.Second function makeTime (line 14) | func makeTime(t int64) time.Time { function timestamp (line 21) | func timestamp(t time.Time) int64 { function makeDuration (line 28) | func makeDuration(ms int32) time.Duration { function milliseconds (line 32) | func milliseconds(d time.Duration) int32 { function deadlineToTimeout (line 42) | func deadlineToTimeout(deadline time.Time, now time.Time) time.Duration { function adjustDeadlineForRTT (line 49) | func adjustDeadlineForRTT(deadline time.Time, now time.Time, rtt time.Du... FILE: topics/list_topics.go function List (line 15) | func List(ctx context.Context, client *kafka.Client) (topics []kafka.Top... function ListRe (line 30) | func ListRe(ctx context.Context, cli *kafka.Client, re *regexp.Regexp) (... FILE: topics/list_topics_test.go function TestListReNil (line 14) | func TestListReNil(t *testing.T) { function TestListRe (line 21) | func TestListRe(t *testing.T) { function newLocalClientWithTopic (line 48) | func newLocalClientWithTopic(topic string, partitions int) (*kafka.Clien... function clientCreateTopic (line 62) | func clientCreateTopic(client *kafka.Client, topic string, partitions in... function newLocalClient (line 96) | func newLocalClient() (*kafka.Client, func()) { function newClient (line 100) | func newClient(addr net.Addr) (*kafka.Client, func()) { FILE: transport.go type RoundTripper (line 39) | type RoundTripper interface type Transport (line 57) | type Transport struct method CloseIdleConnections (line 135) | func (t *Transport) CloseIdleConnections() { method RoundTrip (line 178) | func (t *Transport) RoundTrip(ctx context.Context, addr net.Addr, req ... method dial (line 184) | func (t *Transport) dial() func(context.Context, string, string) (net.... method dialTimeout (line 191) | func (t *Transport) dialTimeout() time.Duration { method idleTimeout (line 198) | func (t *Transport) idleTimeout() time.Duration { method metadataTTL (line 205) | func (t *Transport) metadataTTL() time.Duration { method grabPool (line 212) | func (t *Transport) grabPool(addr net.Addr) *connPool { method context (line 268) | func (t *Transport) context() context.Context { type event (line 275) | type event method trigger (line 277) | func (e event) trigger() { close(e) } type connPool (line 279) | type connPool struct method grabState (line 312) | func (p *connPool) grabState() connPoolState { method setState (line 317) | func (p *connPool) setState(state connPoolState) { method ref (line 321) | func (p *connPool) ref() { method unref (line 325) | func (p *connPool) unref() { method roundTrip (line 339) | func (p *connPool) roundTrip(ctx context.Context, req Request) (Respon... method refreshMetadata (line 450) | func (p *connPool) refreshMetadata(ctx context.Context, expectTopics [... method setReady (line 496) | func (p *connPool) setReady() { method update (line 503) | func (p *connPool) update(ctx context.Context, metadata *meta.Response... method discover (line 589) | func (p *connPool) discover(ctx context.Context, wake <-chan event) { method grabBrokerConn (line 644) | func (p *connPool) grabBrokerConn(ctx context.Context, brokerID int32)... method grabClusterConn (line 667) | func (p *connPool) grabClusterConn(ctx context.Context) (*conn, error) { method sendRequest (line 671) | func (p *connPool) sendRequest(ctx context.Context, req Request, state... method newConnGroup (line 845) | func (p *connPool) newConnGroup(a net.Addr) *connGroup { method newBrokerConnGroup (line 855) | func (p *connPool) newBrokerConnGroup(broker Broker) *connGroup { type connPoolState (line 306) | type connPoolState struct function filterMetadataResponse (line 731) | func filterMetadataResponse(req *meta.Request, res *meta.Response) *meta... function findMetadataTopic (line 753) | func findMetadataTopic(topics []meta.ResponseTopic, topicName string) (i... function sortMetadataBrokers (line 760) | func sortMetadataBrokers(brokers []meta.ResponseBroker) { function sortMetadataTopics (line 766) | func sortMetadataTopics(topics []meta.ResponseTopic) { function sortMetadataPartitions (line 772) | func sortMetadataPartitions(partitions []meta.ResponsePartition) { function makeLayout (line 778) | func makeLayout(metadataResponse *meta.Response) protocol.Cluster { function makePartitions (line 808) | func makePartitions(metadataPartitions []meta.ResponsePartition) map[int... function appendBrokerIDs (line 839) | func appendBrokerIDs(ids, brokers []int32) ([]int32, []int32) { type connRequest (line 866) | type connRequest struct type promise (line 874) | type promise interface type async (line 881) | type async method await (line 883) | func (p async) await(ctx context.Context) (Response, error) { method resolve (line 901) | func (p async) resolve(res Response) { p <- res } method reject (line 903) | func (p async) reject(err error) { p <- err } type rejected (line 908) | type rejected struct method await (line 912) | func (p *rejected) await(ctx context.Context) (Response, error) { function reject (line 910) | func reject(err error) promise { return &rejected{err: err} } type joined (line 918) | type joined struct method await (line 932) | func (p *joined) await(ctx context.Context) (Response, error) { function join (line 924) | func join(promises []promise, requests []Request, merger protocol.Merger... type connGroup (line 957) | type connGroup struct method closeIdleConns (line 970) | func (g *connGroup) closeIdleConns() { method grabConnOrConnect (line 982) | func (g *connGroup) grabConnOrConnect(ctx context.Context) (*conn, err... method grabConnTo (line 1051) | func (g *connGroup) grabConnTo(network, address string) *conn { method grabConn (line 1075) | func (g *connGroup) grabConn() *conn { method removeConn (line 1095) | func (g *connGroup) removeConn(c *conn) bool { method releaseConn (line 1116) | func (g *connGroup) releaseConn(c *conn) bool { method connect (line 1140) | func (g *connGroup) connect(ctx context.Context, addr net.Addr) (*conn... type conn (line 1241) | type conn struct method close (line 1250) | func (c *conn) close() { method run (line 1254) | func (c *conn) run(pc *protocol.Conn, reqs <-chan connRequest) { method roundTrip (line 1273) | func (c *conn) roundTrip(ctx context.Context, pc *protocol.Conn, req R... function authenticateSASL (line 1288) | func authenticateSASL(ctx context.Context, pc *protocol.Conn, mechanism ... function saslHandshakeRoundTrip (line 1331) | func saslHandshakeRoundTrip(pc *protocol.Conn, mechanism string) error { function saslAuthenticateRoundTrip (line 1349) | func saslAuthenticateRoundTrip(pc *protocol.Conn, data []byte) ([]byte, ... FILE: transport_test.go function TestIssue477 (line 16) | func TestIssue477(t *testing.T) { function TestIssue672 (line 42) | func TestIssue672(t *testing.T) { function TestIssue806 (line 170) | func TestIssue806(t *testing.T) { FILE: txnoffsetcommit.go type TxnOffsetCommitRequest (line 14) | type TxnOffsetCommitRequest struct type TxnOffsetCommit (line 52) | type TxnOffsetCommit struct type TxnOffsetCommitResponse (line 60) | type TxnOffsetCommitResponse struct type TxnOffsetCommitPartition (line 71) | type TxnOffsetCommitPartition struct method TxnOffsetCommit (line 86) | func (c *Client) TxnOffsetCommit( FILE: txnoffsetcommit_test.go function TestClientTxnOffsetCommit (line 14) | func TestClientTxnOffsetCommit(t *testing.T) { FILE: write.go type writeBuffer (line 12) | type writeBuffer struct method writeInt8 (line 17) | func (wb *writeBuffer) writeInt8(i int8) { method writeInt16 (line 22) | func (wb *writeBuffer) writeInt16(i int16) { method writeInt32 (line 27) | func (wb *writeBuffer) writeInt32(i int32) { method writeInt64 (line 32) | func (wb *writeBuffer) writeInt64(i int64) { method writeVarInt (line 37) | func (wb *writeBuffer) writeVarInt(i int64) { method writeString (line 55) | func (wb *writeBuffer) writeString(s string) { method writeVarString (line 60) | func (wb *writeBuffer) writeVarString(s string) { method writeNullableString (line 65) | func (wb *writeBuffer) writeNullableString(s *string) { method writeBytes (line 73) | func (wb *writeBuffer) writeBytes(b []byte) { method writeVarBytes (line 82) | func (wb *writeBuffer) writeVarBytes(b []byte) { method writeBool (line 92) | func (wb *writeBuffer) writeBool(b bool) { method writeArrayLen (line 100) | func (wb *writeBuffer) writeArrayLen(n int) { method writeArray (line 104) | func (wb *writeBuffer) writeArray(n int, f func(int)) { method writeVarArray (line 111) | func (wb *writeBuffer) writeVarArray(n int, f func(int)) { method writeStringArray (line 118) | func (wb *writeBuffer) writeStringArray(a []string) { method writeInt32Array (line 122) | func (wb *writeBuffer) writeInt32Array(a []int32) { method write (line 126) | func (wb *writeBuffer) write(a interface{}) { method Write (line 149) | func (wb *writeBuffer) Write(b []byte) (int, error) { method WriteString (line 153) | func (wb *writeBuffer) WriteString(s string) (int, error) { method Flush (line 157) | func (wb *writeBuffer) Flush() error { method writeFetchRequestV2 (line 168) | func (wb *writeBuffer) writeFetchRequestV2(correlationID int32, client... method writeFetchRequestV5 (line 204) | func (wb *writeBuffer) writeFetchRequestV5(correlationID int32, client... method writeFetchRequestV10 (line 246) | func (wb *writeBuffer) writeFetchRequestV10(correlationID int32, clien... method writeListOffsetRequestV1 (line 298) | func (wb *writeBuffer) writeListOffsetRequestV1(correlationID int32, c... method writeProduceRequestV2 (line 328) | func (wb *writeBuffer) writeProduceRequestV2(codec CompressionCodec, c... method writeProduceRequestV3 (line 382) | func (wb *writeBuffer) writeProduceRequestV3(correlationID int32, clie... method writeProduceRequestV7 (line 420) | func (wb *writeBuffer) writeProduceRequestV7(correlationID int32, clie... method writeRecordBatch (line 457) | func (wb *writeBuffer) writeRecordBatch(attributes int16, size int32, ... method writeMessage (line 521) | func (wb *writeBuffer) writeMessage(offset int64, attributes int8, tim... method writeRecord (line 547) | func (wb *writeBuffer) writeRecord(attributes int8, baseTime time.Time... type writable (line 164) | type writable interface function compressMessageSet (line 501) | func compressMessageSet(codec CompressionCodec, msgs ...Message) (compre... function varIntLen (line 565) | func varIntLen(i int64) int { function varBytesLen (line 577) | func varBytesLen(b []byte) int { function varStringLen (line 581) | func varStringLen(s string) int { function varArrayLen (line 585) | func varArrayLen(n int, f func(int) int) int { function messageSize (line 593) | func messageSize(key, value []byte) int32 { function messageSetSize (line 602) | func messageSetSize(msgs ...Message) (size int32) { FILE: write_test.go constant testCorrelationID (line 15) | testCorrelationID = 1 constant testClientID (line 16) | testClientID = "localhost" constant testTopic (line 17) | testTopic = "topic" constant testPartition (line 18) | testPartition = 42 type WriteVarIntTestCase (line 21) | type WriteVarIntTestCase struct function TestWriteVarInt (line 26) | func TestWriteVarInt(t *testing.T) { function TestWriteOptimizations (line 49) | func TestWriteOptimizations(t *testing.T) { function testWriteFetchRequestV2 (line 55) | func testWriteFetchRequestV2(t *testing.T) { function testWriteListOffsetRequestV1 (line 86) | func testWriteListOffsetRequestV1(t *testing.T) { function testWriteProduceRequestV2 (line 111) | func testWriteProduceRequestV2(t *testing.T) { function testWriteOptimization (line 158) | func testWriteOptimization(t *testing.T, h requestHeader, r request, f f... function TestWriteV2RecordBatch (line 194) | func TestWriteV2RecordBatch(t *testing.T) { FILE: writer.go type Writer (line 78) | type Writer struct method enter (line 524) | func (w *Writer) enter() bool { method leave (line 536) | func (w *Writer) leave() { w.group.Done() } method spawn (line 543) | func (w *Writer) spawn(f func()) { method Close (line 555) | func (w *Writer) Close() error { method WriteMessages (line 609) | func (w *Writer) WriteMessages(ctx context.Context, msgs ...Message) e... method batchMessages (line 698) | func (w *Writer) batchMessages(messages []Message, assignments map[top... method produce (line 727) | func (w *Writer) produce(key topicPartition, batch *writeBatch) (*Prod... method partitions (line 744) | func (w *Writer) partitions(ctx context.Context, topic string) (int, e... method client (line 771) | func (w *Writer) client(timeout time.Duration) *Client { method balancer (line 779) | func (w *Writer) balancer() Balancer { method maxAttempts (line 786) | func (w *Writer) maxAttempts() int { method writeBackoffMin (line 797) | func (w *Writer) writeBackoffMin() time.Duration { method writeBackoffMax (line 804) | func (w *Writer) writeBackoffMax() time.Duration { method batchSize (line 811) | func (w *Writer) batchSize() int { method batchBytes (line 818) | func (w *Writer) batchBytes() int64 { method batchTimeout (line 825) | func (w *Writer) batchTimeout() time.Duration { method readTimeout (line 832) | func (w *Writer) readTimeout() time.Duration { method writeTimeout (line 839) | func (w *Writer) writeTimeout() time.Duration { method withLogger (line 846) | func (w *Writer) withLogger(do func(Logger)) { method withErrorLogger (line 852) | func (w *Writer) withErrorLogger(do func(Logger)) { method stats (line 860) | func (w *Writer) stats() *writerStats { method Stats (line 878) | func (w *Writer) Stats() WriterStats { method chooseTopic (line 907) | func (w *Writer) chooseTopic(msg Message) (string, error) { type WriterConfig (line 230) | type WriterConfig struct method Validate (line 336) | func (config *WriterConfig) Validate() error { type topicPartition (line 330) | type topicPartition struct type WriterStats (line 345) | type WriterStats struct type writerStats (line 394) | type writerStats struct function NewWriter (line 415) | func NewWriter(config WriterConfig) *Writer { type batchQueue (line 924) | type batchQueue struct method Put (line 936) | func (b *batchQueue) Put(batch *writeBatch) bool { method Get (line 948) | func (b *batchQueue) Get() *writeBatch { method Close (line 967) | func (b *batchQueue) Close() { function newBatchQueue (line 975) | func newBatchQueue(initialSize int) batchQueue { type partitionWriter (line 989) | type partitionWriter struct method writeBatches (line 1011) | func (ptw *partitionWriter) writeBatches() { method writeMessages (line 1026) | func (ptw *partitionWriter) writeMessages(msgs []Message, indexes []in... method newWriteBatch (line 1066) | func (ptw *partitionWriter) newWriteBatch() *writeBatch { method awaitBatch (line 1075) | func (ptw *partitionWriter) awaitBatch(batch *writeBatch) { method writeBatch (line 1101) | func (ptw *partitionWriter) writeBatch(batch *writeBatch) { method close (line 1187) | func (ptw *partitionWriter) close() { function newPartitionWriter (line 1001) | func newPartitionWriter(w *Writer, key topicPartition) *partitionWriter { type writeBatch (line 1201) | type writeBatch struct method add (line 1221) | func (b *writeBatch) add(msg Message, maxSize int, maxBytes int64) bool { method full (line 1238) | func (b *writeBatch) full(maxSize int, maxBytes int64) bool { method trigger (line 1242) | func (b *writeBatch) trigger() { method complete (line 1246) | func (b *writeBatch) complete(err error) { function newWriteBatch (line 1212) | func newWriteBatch(now time.Time, timeout time.Duration) *writeBatch { type writerRecords (line 1251) | type writerRecords struct method ReadRecord (line 1259) | func (r *writerRecords) ReadRecord() (*Record, error) { type bytesReadCloser (line 1280) | type bytesReadCloser struct method Close (line 1282) | func (*bytesReadCloser) Close() error { return nil } function loadCachedPartitions (line 1293) | func loadCachedPartitions(numPartitions int) []int { FILE: writer_test.go function TestBatchQueue (line 18) | func TestBatchQueue(t *testing.T) { function testBatchQueuePutWakesSleepingGetter (line 46) | func testBatchQueuePutWakesSleepingGetter(t *testing.T) { function testBatchQueuePutAfterCloseFails (line 65) | func testBatchQueuePutAfterCloseFails(t *testing.T) { function testBatchQueueGetWorksAfterClose (line 73) | func testBatchQueueGetWorksAfterClose(t *testing.T) { function TestWriter (line 99) | func TestWriter(t *testing.T) { function newTestWriter (line 205) | func newTestWriter(config WriterConfig) *Writer { function testWriterClose (line 212) | func testWriterClose(t *testing.T) { function testWriterRequiredAcksNone (line 226) | func testWriterRequiredAcksNone(t *testing.T) { function testWriterSetsRightBalancer (line 254) | func testWriterSetsRightBalancer(t *testing.T) { function testWriterRoundRobin1 (line 268) | func testWriterRoundRobin1(t *testing.T) { function TestValidateWriter (line 310) | func TestValidateWriter(t *testing.T) { function testWriterMaxAttemptsErr (line 330) | func testWriterMaxAttemptsErr(t *testing.T) { function testWriterMaxBytes (line 351) | func testWriterMaxBytes(t *testing.T) { function readOffset (line 407) | func readOffset(topic string, partition int) (offset int64, err error) { function readPartition (line 426) | func readPartition(topic string, partition int, offset int64) (msgs []Me... function testWriterBatchBytes (line 453) | func testWriterBatchBytes(t *testing.T) { function testWriterBatchSize (line 506) | func testWriterBatchSize(t *testing.T) { function testWriterSmallBatchBytes (line 557) | func testWriterSmallBatchBytes(t *testing.T) { function testWriterBatchBytesHeaders (line 608) | func testWriterBatchBytesHeaders(t *testing.T) { function testWriterMultipleTopics (line 669) | func testWriterMultipleTopics(t *testing.T) { function testWriterMissingTopic (line 735) | func testWriterMissingTopic(t *testing.T) { function testWriterInvalidPartition (line 753) | func testWriterInvalidPartition(t *testing.T) { function testWriterUnexpectedMessageTopic (line 778) | func testWriterUnexpectedMessageTopic(t *testing.T) { function testWriteMessageWithWriterData (line 800) | func testWriteMessageWithWriterData(t *testing.T) { function testWriterAutoCreateTopic (line 839) | func testWriterAutoCreateTopic(t *testing.T) { function testWriterTerminateMissingTopic (line 874) | func testWriterTerminateMissingTopic(t *testing.T) { function testWriterSasl (line 898) | func testWriterSasl(t *testing.T) { function testWriterDefaults (line 942) | func testWriterDefaults(t *testing.T) { function testWriterDefaultStats (line 955) | func testWriterDefaultStats(t *testing.T) { function testWriterOverrideConfigStats (line 990) | func testWriterOverrideConfigStats(t *testing.T) { type staticBalancer (line 1033) | type staticBalancer struct method Balance (line 1037) | func (b *staticBalancer) Balance(_ Message, partitions ...int) int { FILE: zstd/zstd.go constant Code (line 9) | Code = 4 constant DefaultCompressionLevel (line 10) | DefaultCompressionLevel = 3 function NewCompressionCodec (line 15) | func NewCompressionCodec() *CompressionCodec { function NewCompressionCodecWith (line 19) | func NewCompressionCodecWith(level int) *CompressionCodec {