compress

package
v0.0.0-...-ff3bb38 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListSupported

func ListSupported() []string

func RegisterCompressor

func RegisterCompressor(name string, comp Compressor) error

Types

type AlreadyExistsError

type AlreadyExistsError string

func (AlreadyExistsError) Error

func (e AlreadyExistsError) Error() string

type Compressor

type Compressor interface {
	Compress(w io.Writer) (io.WriteCloser, error)
	Decompress(r io.Reader) (io.ReadCloser, error)
}

Compressor interface should cover most cases

func GetCompressor

func GetCompressor(name string) (Compressor, error)

type DoesNotExistError

type DoesNotExistError string

func (DoesNotExistError) Error

func (e DoesNotExistError) Error() string

Jump to

Keyboard shortcuts

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