Documentation ¶
Index ¶
- func SkipFB2Binaries(next fb2parse.TokenHandler) fb2parse.TokenHandler
- func SkipFB2Cover(next fb2parse.TokenHandler) fb2parse.TokenHandler
- func SkipFB2CustomInfo(next fb2parse.TokenHandler) fb2parse.TokenHandler
- func SkipFB2DocInfo(next fb2parse.TokenHandler) fb2parse.TokenHandler
- type HandleLibItemTask
- type IndexFB2DataTask
- type IndexTaskFactory
- type ReadZipTask
- type ReaderTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipFB2Binaries ¶ added in v1.12.0
func SkipFB2Binaries(next fb2parse.TokenHandler) fb2parse.TokenHandler
func SkipFB2Cover ¶ added in v1.12.0
func SkipFB2Cover(next fb2parse.TokenHandler) fb2parse.TokenHandler
func SkipFB2CustomInfo ¶ added in v1.12.0
func SkipFB2CustomInfo(next fb2parse.TokenHandler) fb2parse.TokenHandler
func SkipFB2DocInfo ¶ added in v1.12.0
func SkipFB2DocInfo(next fb2parse.TokenHandler) fb2parse.TokenHandler
Types ¶
type HandleLibItemTask ¶ added in v1.12.0
type HandleLibItemTask struct {
// contains filtered or unexported fields
}
func NewHandleLibItemTask ¶ added in v1.12.0
func NewHandleLibItemTask( num, total int, item string, lib entities.Library, logger zerolog.Logger, readPool interfaces.Pool, indexPool interfaces.Pool, wg *sync.WaitGroup, repoMarks entities.ILibMarksRepo, counter *entities.CntAtomic32, bars *mpb.Progress, taskIndex IndexTaskFactory, ) *HandleLibItemTask
func (*HandleLibItemTask) Do ¶ added in v1.12.0
func (t *HandleLibItemTask) Do()
func (*HandleLibItemTask) GetID ¶ added in v1.12.0
func (t *HandleLibItemTask) GetID() string
type IndexFB2DataTask ¶ added in v1.12.0
type IndexFB2DataTask struct {
// contains filtered or unexported fields
}
func NewIndexFB2DataTask ¶ added in v1.12.0
func NewIndexFB2DataTask( data io.Reader, book entities.BookInfo, encoder entities.LibEncodeType, repo entities.IBooksInfoRepo, logger zerolog.Logger, wg *sync.WaitGroup, counter *entities.CntAtomic32, bar *mpb.Bar, ) *IndexFB2DataTask
func (*IndexFB2DataTask) Do ¶ added in v1.12.0
func (t *IndexFB2DataTask) Do()
func (*IndexFB2DataTask) GetID ¶ added in v1.12.0
func (t *IndexFB2DataTask) GetID() string
type IndexTaskFactory ¶ added in v1.12.0
type ReadZipTask ¶ added in v1.12.0
type ReadZipTask struct {
// contains filtered or unexported fields
}
func NewReadZipTask ¶ added in v1.12.0
func NewReadZipTask( num, total int, path string, item fs.FileInfo, lib entities.Library, repoMarks entities.ILibMarksRepo, logger zerolog.Logger, readPool interfaces.Pool, indexPool interfaces.Pool, wg *sync.WaitGroup, counter *entities.CntAtomic32, bars *mpb.Progress, taskIndex IndexTaskFactory, ) *ReadZipTask
func (*ReadZipTask) Do ¶ added in v1.12.0
func (t *ReadZipTask) Do()
func (*ReadZipTask) GetID ¶ added in v1.12.0
func (t *ReadZipTask) GetID() string
type ReaderTask ¶ added in v1.12.0
type ReaderTask struct {
// contains filtered or unexported fields
}
func NewReaderTask ¶ added in v1.12.0
func NewReaderTask( reader io.ReadCloser, book entities.BookInfo, wg *sync.WaitGroup, logger zerolog.Logger, indexPool interfaces.Pool, taskIndex IndexTaskFactory, ) *ReaderTask
func (*ReaderTask) Do ¶ added in v1.12.0
func (t *ReaderTask) Do()
func (*ReaderTask) GetID ¶ added in v1.12.0
func (t *ReaderTask) GetID() string
Click to show internal directories.
Click to hide internal directories.