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

Struct Codec

compress/gzip/gzip.go:16–24  ·  view source on GitHub ↗

Codec is the implementation of a compress.Codec which supports creating readers and writers for kafka messages compressed with gzip.

Source from the content-addressed store, hash-verified

14// Codec is the implementation of a compress.Codec which supports creating
15// readers and writers for kafka messages compressed with gzip.
16type Codec struct {
17 // The compression level to configure on writers created by this codec.
18 // Acceptable values are defined in the standard gzip package.
19 //
20 // Default to gzip.DefaultCompressionLevel.
21 Level int
22
23 writerPool sync.Pool
24}
25
26// Code implements the compress.Codec interface.
27func (c *Codec) Code() int8 { return 1 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected