Documentation ¶
Index ¶
- func GetCompress(name string) (NewCompressReaderFunc, NewCompressWriterFunc, error)
- type Compress
- func NewNullCompressReader(r io.ReadCloser) (Compress, error)
- func NewNullCompressWriter(w io.WriteCloser) (Compress, error)
- func NewS2CompressReader(r io.ReadCloser) (Compress, error)
- func NewS2CompressWriter(w io.WriteCloser) (Compress, error)
- func NewZstdCompressReader(r io.ReadCloser) (Compress, error)
- func NewZstdCompressWriter(w io.WriteCloser) (Compress, error)
- type NewCompressReaderFunc
- type NewCompressWriterFunc
- type NullCompress
- type S2
- type Zstd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCompress ¶
func GetCompress(name string) (NewCompressReaderFunc, NewCompressWriterFunc, error)
Types ¶
type Compress ¶
type Compress interface { Read(buf []byte) (int, error) Write(buf []byte) (int, error) Close() error }
func NewNullCompressReader ¶
func NewNullCompressReader(r io.ReadCloser) (Compress, error)
func NewNullCompressWriter ¶
func NewNullCompressWriter(w io.WriteCloser) (Compress, error)
func NewS2CompressReader ¶
func NewS2CompressReader(r io.ReadCloser) (Compress, error)
func NewS2CompressWriter ¶
func NewS2CompressWriter(w io.WriteCloser) (Compress, error)
func NewZstdCompressReader ¶
func NewZstdCompressReader(r io.ReadCloser) (Compress, error)
func NewZstdCompressWriter ¶
func NewZstdCompressWriter(w io.WriteCloser) (Compress, error)
type NewCompressReaderFunc ¶
type NewCompressReaderFunc func(r io.ReadCloser) (Compress, error)
type NewCompressWriterFunc ¶
type NewCompressWriterFunc func(w io.WriteCloser) (Compress, error)
type NullCompress ¶
type NullCompress struct {
// contains filtered or unexported fields
}
func (*NullCompress) Close ¶
func (n *NullCompress) Close() error
Click to show internal directories.
Click to hide internal directories.