library

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrIterStop

type ErrIterStop struct{}

func (*ErrIterStop) Error

func (e *ErrIterStop) Error() string

type ILibItemHandler

type ILibItemHandler func(file os.FileInfo, dir string, num, total int, logger zerolog.Logger) error

type IZipItemHandler

type IZipItemHandler func(item *zip.File, data io.Reader, offset, num int64, logger zerolog.Logger) error

type LocalFSItems

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

func NewLocalFSItems

func NewLocalFSItems(path string, extensions []string, logger zerolog.Logger) *LocalFSItems

func (*LocalFSItems) GetAll

func (l *LocalFSItems) GetAll() (items []string, err error)

func (*LocalFSItems) IterateItems

func (l *LocalFSItems) IterateItems(handler ILibItemHandler) (err error)

type ZipItemReader

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

func NewZipItemIterator

func NewZipItemIterator(path string, logger zerolog.Logger) *ZipItemReader

func (*ZipItemReader) IterateItems

func (z *ZipItemReader) IterateItems(handler IZipItemHandler) (err error)

Jump to

Keyboard shortcuts

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