Documentation ¶
Index ¶
Constants ¶
View Source
const ( None = CompressionType("None") Zip = CompressionType("Zip") Gzip = CompressionType("Gzip") Brotli = CompressionType("Brotli") Zstd = CompressionType("Zstd") S2 = CompressionType("S2") Huff = CompressionType("Huff") )
Variables ¶
View Source
var (
ErrAlgorithmNotImplemented = errors.New("algorithm not implemented")
)
Functions ¶
func NewCompressedReader ¶
func NewCompressedWriter ¶
func NewCompressedWriter(ctx context.Context, w io.Writer, cType CompressionType) (io.WriteCloser, error)
func NewNopWriterCloser ¶
func NewNopWriterCloser(w io.Writer) io.WriteCloser
Types ¶
type CompressionType ¶
type CompressionType string
Click to show internal directories.
Click to hide internal directories.