Documentation
¶
Index ¶
Constants ¶
View Source
const ( None Type = "none" Snappy = "snappy" Gzip = "gzip" Lzo = "lzo" Zstd = "zstd" )
Variables ¶
Functions ¶
func IsSupportedCompressor ¶ added in v1.0.0
Types ¶
type Compressor ¶
func Get ¶
func Get(c Type) (Compressor, error)
type GzipCompressor ¶
type GzipCompressor struct { }
func NewGzipCompressor ¶
func NewGzipCompressor() *GzipCompressor
type LzoCompressor ¶
type LzoCompressor struct { }
func NewLzoCompressor ¶
func NewLzoCompressor() *LzoCompressor
type NoneCompressor ¶
type NoneCompressor struct { }
NoneCompressor do nothing
func NewNoneCompressor ¶
func NewNoneCompressor() *NoneCompressor
type SnappyCompressor ¶
type SnappyCompressor struct { }
func NewSnappyCompressor ¶
func NewSnappyCompressor() *SnappyCompressor
type Type ¶ added in v1.0.0
type Type string
func AvailableCompressors ¶ added in v1.0.0
func AvailableCompressors() []Type
type ZstdCompressor ¶
type ZstdCompressor struct { }
func NewZstdCompressor ¶
func NewZstdCompressor() *ZstdCompressor
Click to show internal directories.
Click to hide internal directories.