compress

package
v0.0.0-...-493bf59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecompressWriteCloser

type DecompressWriteCloser struct {
	// contains filtered or unexported fields
}

Unwraps compressed data to the given io.Writer stream.

func (*DecompressWriteCloser) Close

func (w *DecompressWriteCloser) Close() error

func (*DecompressWriteCloser) Write

func (w *DecompressWriteCloser) Write(p []byte) (int, error)

type ICompress

type ICompress interface {
	NewDecompressWriteCloser(writeCloser io.WriteCloser) (*DecompressWriteCloser, error)
}

ICompress

func New

func New() ICompress

New creates a new instance of SCompress

type SCompress

type SCompress struct{}

SCompress is an implementor of ICompress

func (*SCompress) NewDecompressWriteCloser

func (c *SCompress) NewDecompressWriteCloser(writeCloser io.WriteCloser) (*DecompressWriteCloser, error)

NewDecompressWriteCloser takes an io.WriteCloser and wraps it in a type that will decompress Writes to the io.WriteCloser as they are written.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL