Codec is the implementation of a compress.Codec which supports creating readers and writers for kafka messages compressed with gzip.
| 14 | // Codec is the implementation of a compress.Codec which supports creating |
| 15 | // readers and writers for kafka messages compressed with gzip. |
| 16 | type 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. |
| 27 | func (c *Codec) Code() int8 { return 1 } |
nothing calls this directly
no outgoing calls
no test coverage detected