Documentation ¶
Index ¶
- func SkipFB2Binaries(next xmlparse.TokenHandler) xmlparse.TokenHandler
- func SkipFB2Cover(next xmlparse.TokenHandler) xmlparse.TokenHandler
- func SkipFB2CustomInfo(next xmlparse.TokenHandler) xmlparse.TokenHandler
- func SkipFB2DocInfo(next xmlparse.TokenHandler) xmlparse.TokenHandler
- type DefineItemTask
- type DoReadZipTask
- type ErrAlreadyIndexed
- type ErrSkipRule
- type IndexTaskFactory
- type ParseFB2Task
- type PushParseTask
- type PushReadTask
- type ReadTask
- type ReadZipTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipFB2Binaries ¶ added in v1.12.0
func SkipFB2Binaries(next xmlparse.TokenHandler) xmlparse.TokenHandler
func SkipFB2Cover ¶ added in v1.12.0
func SkipFB2Cover(next xmlparse.TokenHandler) xmlparse.TokenHandler
func SkipFB2CustomInfo ¶ added in v1.12.0
func SkipFB2CustomInfo(next xmlparse.TokenHandler) xmlparse.TokenHandler
func SkipFB2DocInfo ¶ added in v1.12.0
func SkipFB2DocInfo(next xmlparse.TokenHandler) xmlparse.TokenHandler
Types ¶
type DefineItemTask ¶ added in v1.13.1
type DefineItemTask struct {
// contains filtered or unexported fields
}
func NewDefineItemTask ¶ added in v1.13.1
func NewDefineItemTask( item string, lib entities.Library, repoMarks *repos.LibMarks, bar *mpb.Bar, doFB2Task PushReadTask, doZIPTask DoReadZipTask, ) *DefineItemTask
func (*DefineItemTask) Do ¶ added in v1.13.1
func (t *DefineItemTask) Do() error
func (*DefineItemTask) ID ¶ added in v1.13.1
func (t *DefineItemTask) ID() string
type DoReadZipTask ¶ added in v1.13.1
type ErrAlreadyIndexed ¶ added in v1.14.0
type ErrAlreadyIndexed struct{}
func (ErrAlreadyIndexed) Error ¶ added in v1.14.0
func (e ErrAlreadyIndexed) Error() string
type ErrSkipRule ¶ added in v1.14.0
type ErrSkipRule struct {
// contains filtered or unexported fields
}
func (ErrSkipRule) Error ¶ added in v1.14.0
func (e ErrSkipRule) Error() string
type IndexTaskFactory ¶ added in v1.12.0
type ParseFB2Task ¶ added in v1.13.1
type ParseFB2Task struct {
// contains filtered or unexported fields
}
func NewParseFB2Task ¶ added in v1.13.1
func NewParseFB2Task( data io.Reader, book entities.Book, rules entities.IndexRules, encoder entities.LibEncodeType, repo *repos.BooksLevelBleve, bar *mpb.Bar, ) *ParseFB2Task
func (*ParseFB2Task) Do ¶ added in v1.13.1
func (t *ParseFB2Task) Do() error
func (*ParseFB2Task) ID ¶ added in v1.13.1
func (t *ParseFB2Task) ID() string
type PushParseTask ¶ added in v1.13.1
type PushReadTask ¶ added in v1.13.1
type PushReadTask func(io.ReadCloser, entities.Book) error
type ReadTask ¶ added in v1.13.1
type ReadTask struct {
// contains filtered or unexported fields
}
func NewReadTask ¶ added in v1.13.1
func NewReadTask( src string, lib string, reader io.ReadCloser, doParseTask PushParseTask, ) *ReadTask
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 int, total int, path string, item fs.FileInfo, lib entities.Library, bars *mpb.Progress, doReaderTask PushReadTask, ) *ReadZipTask
func (*ReadZipTask) Do ¶ added in v1.12.0
func (t *ReadZipTask) Do() error
func (*ReadZipTask) ID ¶ added in v1.13.1
func (t *ReadZipTask) ID() string
Click to show internal directories.
Click to hide internal directories.