Skip to content

Commit

Permalink
Add back deprecated constants
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth committed Feb 1, 2024
1 parent ac56daa commit 4bd090e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config/configcompression/compressiontype.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@ const (
TypeZstd Type = "zstd"
typeNone Type = "none"
typeEmpty Type = ""

// Gzip
// Deprecated [0.94.0]: use TypeGzip instead.
Gzip CompressionType = "gzip"

// Zlib
// Deprecated [0.94.0]: use TypeZlib instead.
Zlib CompressionType = "zlib"

// Deflate
// Deprecated [0.94.0]: use TypeDeflate instead.
Deflate CompressionType = "deflate"

// Snappy
// Deprecated [0.94.0]: use TypeSnappy instead.
Snappy CompressionType = "snappy"

// Zstd
// Deprecated [0.94.0]: use TypeZstd instead.
Zstd CompressionType = "zstd"
)

// IsCompressed returns false if CompressionType is nil, none, or empty. Otherwise it returns true.
Expand Down

0 comments on commit 4bd090e

Please sign in to comment.