Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bzip2 ¶ added in v1.1.0
type Bzip2 struct { }
func (*Bzip2) Decompress ¶ added in v1.1.0
Decompress Bzip2 decompress
func (*Bzip2) GetCompressorType ¶ added in v1.1.0
func (g *Bzip2) GetCompressorType() CompressorType
type Compressor ¶
type CompressorType ¶
type CompressorType int8
const ( CompressorNone CompressorType = iota CompressorGzip CompressorZip CompressorSevenz CompressorBzip2 CompressorLz4 CompressorDeflate CompressorZstd )
func GetByName ¶ added in v1.2.0
func GetByName(name string) CompressorType
func (CompressorType) GetCompressor ¶ added in v1.2.0
func (c CompressorType) GetCompressor() Compressor
func (CompressorType) String ¶ added in v1.2.0
func (c CompressorType) String() string
type DeflateCompress ¶
type DeflateCompress struct{}
func (*DeflateCompress) Decompress ¶
func (*DeflateCompress) Decompress(data []byte) ([]byte, error)
func (*DeflateCompress) GetCompressorType ¶
func (*DeflateCompress) GetCompressorType() CompressorType
type Gzip ¶
type Gzip struct { }
func (*Gzip) Decompress ¶
Decompress gzip decompress
func (*Gzip) GetCompressorType ¶
func (g *Gzip) GetCompressorType() CompressorType
type Lz4 ¶
type Lz4 struct { }
func (*Lz4) GetCompressorType ¶
func (l *Lz4) GetCompressorType() CompressorType
type NoneCompressor ¶ added in v1.2.0
type NoneCompressor struct { }
func (*NoneCompressor) Compress ¶ added in v1.2.0
func (n *NoneCompressor) Compress(data []byte) ([]byte, error)
func (*NoneCompressor) Decompress ¶ added in v1.2.0
func (n *NoneCompressor) Decompress(data []byte) ([]byte, error)
func (*NoneCompressor) GetCompressorType ¶ added in v1.2.0
func (n *NoneCompressor) GetCompressorType() CompressorType
type Zip ¶
type Zip struct{}
func (Zip) GetCompressorType ¶
func (z Zip) GetCompressorType() CompressorType
Click to show internal directories.
Click to hide internal directories.