decompressor

package
v0.0.0-...-5aba264 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedExtension = errors.New("unsupported extension type")
)

Functions

This section is empty.

Types

type Archive

type Archive interface {
	Files() []File
}

type Decompressor

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

func New

func New(r io.ReaderAt, size int64, ext string, wFn WalkFunc) (*Decompressor, error)

func (*Decompressor) Decompress

func (uz *Decompressor) Decompress(ctx context.Context, proceeded int64, progressFunc ProgressFunc) error

type File

type File interface {
	Name() string
	Open() (io.ReadCloser, error)
	Skip() bool
	Size() uint64
}

type ProgressFunc

type ProgressFunc func(context.Context, int64) error

type WalkFunc

type WalkFunc func(name string) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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