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

Struct Codec

compress/snappy/snappy.go:37–45  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

35// Codec is the implementation of a compress.Codec which supports creating
36// readers and writers for kafka messages compressed with snappy.
37type 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.
48func (c *Codec) Code() int8 { return 2 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected