decompress

package
v0.0.0-...-7e1f343 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decompress

type Decompress interface {
	Name() string
	SetValue(d *Decompressor)
	Walk(file multipart.File) (string, error)
	Unarchive(file multipart.File, dst string) error
}

Decompress Decompress.

type Decompressor

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

Decompressor Decompressor.

func NewDecompressor

func NewDecompressor() *Decompressor

NewDecompressor NewDecompressor.

func (*Decompressor) GetDecompress

func (d *Decompressor) GetDecompress(fileExt string) (Decompress, error)

GetDecompress GetDecompress.

type ZipDecompress

type ZipDecompress struct {
	*Decompressor
}

ZipDecompress Decompress.

func (*ZipDecompress) Name

func (z *ZipDecompress) Name() string

Name Name.

func (*ZipDecompress) SetValue

func (z *ZipDecompress) SetValue(d *Decompressor)

SetValue SetValue.

func (*ZipDecompress) Unarchive

func (z *ZipDecompress) Unarchive(file multipart.File, dst string) error

Unarchive Unarchive.

func (*ZipDecompress) Walk

func (z *ZipDecompress) Walk(file multipart.File) (string, error)

Walk Walk.

Jump to

Keyboard shortcuts

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