Codec is the implementation of a compress.Codec which supports creating readers and writers for kafka messages compressed with snappy.
| 35 | // Codec is the implementation of a compress.Codec which supports creating |
| 36 | // readers and writers for kafka messages compressed with snappy. |
| 37 | type Codec struct { |
| 38 | // An optional framing to apply to snappy compression. |
| 39 | // |
| 40 | // Default to Framed. |
| 41 | Framing Framing |
| 42 | |
| 43 | // Compression level. |
| 44 | Compression Compression |
| 45 | } |
| 46 | |
| 47 | // Code implements the compress.Codec interface. |
| 48 | func (c *Codec) Code() int8 { return 2 } |
nothing calls this directly
no outgoing calls
no test coverage detected