Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type uint8
Type denotes the type of encoder
const ( EncoderTypeLZ4CustomDeprecated Type = iota // EncoderTypeLZ4Custom : LZ4 encoder / compressor with custom checksum stripping (default, hence allocated the value 0) EncoderTypeNull // EncoderTypeNull : Null encoder EncoderTypeZSTD // EncoderTypeZSTD : ZSTD encoder / compressor EncoderTypeLZ4 // EncoderTypeLZ4 ; LZ4 encoder / compressor based on available lz4 system library (1.9.4 recommended for performance) // MaxEncoderType should always be the last entry MaxEncoderType = EncoderTypeLZ4 )
IMPORTANT: When implementing new encoders, make sure to add the type above MaxEncoderType. Otherwise, compatibility with existing databases is broken
func GetTypeByString ¶
GetTypeByString returns the encoder type based on a named string
Click to show internal directories.
Click to hide internal directories.