Documentation ¶
Index ¶
Constants ¶
View Source
const ( Code int8 = 4 // https://github.com/DataDog/zstd/blob/1e382f59b41eebd6f592c5db4fd1958ec38a0eba/zstd.go#L33 DefaultCompressionLevel int = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressionCodec ¶
type CompressionCodec struct { // CompressionLevel is the level of compression to use on messages. CompressionLevel int }
func NewCompressionCodec ¶
func NewCompressionCodec() CompressionCodec
func NewCompressionCodecWith ¶
func NewCompressionCodecWith(level int) CompressionCodec
func (CompressionCodec) Code ¶
func (c CompressionCodec) Code() int8
Code implements the kafka.CompressionCodec interface.
Click to show internal directories.
Click to hide internal directories.