compressors

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	io.WriteCloser
	Flush() error
}

func New

func New(writer io.Writer, compression core.CompressionType) (Compressor, error)

type NoOpCompressor

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

func NewNoOpCompressor

func NewNoOpCompressor(wr io.Writer) *NoOpCompressor

func (*NoOpCompressor) Close

func (c *NoOpCompressor) Close() error

func (*NoOpCompressor) Flush

func (c *NoOpCompressor) Flush() error

func (*NoOpCompressor) Write

func (c *NoOpCompressor) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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