Documentation ¶
Index ¶
- type Compressor
- func (m *Compressor) CompressBytes2Base64(data []byte) (string, error)
- func (m *Compressor) CompressBytes2Bytes(data []byte) ([]byte, error)
- func (m *Compressor) CompressBytes2File(data []byte, dst string) (int64, error)
- func (m *Compressor) CompressFile2Base64(src string) (string, error)
- func (m *Compressor) CompressFile2Bytes(src string) ([]byte, error)
- func (m *Compressor) CompressFile2File(src, dst string) (int64, error)
- func (m *Compressor) NewWriter(w io.Writer) (writer *gzip.Writer, err error)
- type Decompressor
- func (m *Decompressor) DecompressBytes2Base64(data []byte) (string, error)
- func (m *Decompressor) DecompressBytes2Bytes(data []byte) ([]byte, error)
- func (m *Decompressor) DecompressBytes2File(data []byte, dst string) (int64, error)
- func (m *Decompressor) DecompressFile2Base64(src string) (string, error)
- func (m *Decompressor) DecompressFile2Bytes(src string) ([]byte, error)
- func (m *Decompressor) DecompressFile2File(src, dst string) (int64, error)
- func (m *Decompressor) NewReader(r io.Reader) (*gzip.Reader, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
func NewCompressor ¶
func NewCompressor(options ...*Option) *Compressor
func (*Compressor) CompressBytes2Base64 ¶
func (m *Compressor) CompressBytes2Base64(data []byte) (string, error)
func (*Compressor) CompressBytes2Bytes ¶
func (m *Compressor) CompressBytes2Bytes(data []byte) ([]byte, error)
func (*Compressor) CompressBytes2File ¶
func (m *Compressor) CompressBytes2File(data []byte, dst string) (int64, error)
func (*Compressor) CompressFile2Base64 ¶
func (m *Compressor) CompressFile2Base64(src string) (string, error)
func (*Compressor) CompressFile2Bytes ¶
func (m *Compressor) CompressFile2Bytes(src string) ([]byte, error)
func (*Compressor) CompressFile2File ¶
func (m *Compressor) CompressFile2File(src, dst string) (int64, error)
type Decompressor ¶
type Decompressor struct { }
func NewDecompressor ¶
func NewDecompressor() *Decompressor
func (*Decompressor) DecompressBytes2Base64 ¶
func (m *Decompressor) DecompressBytes2Base64(data []byte) (string, error)
func (*Decompressor) DecompressBytes2Bytes ¶
func (m *Decompressor) DecompressBytes2Bytes(data []byte) ([]byte, error)
func (*Decompressor) DecompressBytes2File ¶ added in v0.1.1
func (m *Decompressor) DecompressBytes2File(data []byte, dst string) (int64, error)
func (*Decompressor) DecompressFile2Base64 ¶
func (m *Decompressor) DecompressFile2Base64(src string) (string, error)
func (*Decompressor) DecompressFile2Bytes ¶
func (m *Decompressor) DecompressFile2Bytes(src string) ([]byte, error)
func (*Decompressor) DecompressFile2File ¶
func (m *Decompressor) DecompressFile2File(src, dst string) (int64, error)
Click to show internal directories.
Click to hide internal directories.