utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compression

type Compression struct {
	FolderCallback ExtractFolderCallback
	FileCallback   ExtractFileCallback
}

Compression The type of the compression

Contains the callbacks

func (*Compression) ProcessCompression

func (compression *Compression) ProcessCompression(gzipStream io.Reader) error

ProcessCompression Decompress the stream, for each file and folder the corresponding

Callbacks are called

type ExtractFileCallback

type ExtractFileCallback func(relativDir string, fileSize int64, readContent io.Reader)

ExtractFileCallback called if the current extraction is a file

type ExtractFolderCallback

type ExtractFolderCallback func(relativDir string)

ExtractFolderCallback is called if the current extraction is a folder

Jump to

Keyboard shortcuts

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