repos

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BooksInfo added in v1.12.0

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

func NewBooksInfo added in v1.12.0

func NewBooksInfo(batchSize int, highlight bool,
	storage *bbolt.DB, index entities.ISearchIndex, logger zerolog.Logger,
	encoder entities.IMarshal, decoder entities.IUnmarshal,
) *BooksInfo

func (*BooksInfo) Close added in v1.12.0

func (r *BooksInfo) Close() error

func (*BooksInfo) GetBook added in v1.12.0

func (r *BooksInfo) GetBook(bookID string) (entities.BookInfo, error)

func (*BooksInfo) SaveBook added in v1.12.0

func (r *BooksInfo) SaveBook(book entities.BookInfo) (err error)

func (*BooksInfo) SearchAll added in v1.12.0

func (r *BooksInfo) SearchAll(strQuery string, pager pagination.IPager) ([]entities.BookInfo, error)

func (*BooksInfo) SearchByAuthor added in v1.12.0

func (r *BooksInfo) SearchByAuthor(strQuery string, pager pagination.IPager) ([]entities.BookInfo, error)

func (*BooksInfo) SearchBySequence added in v1.12.0

func (r *BooksInfo) SearchBySequence(strQuery string, pager pagination.IPager) ([]entities.BookInfo, error)

type LibMarks added in v1.12.0

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

func NewLibMarks added in v1.12.0

func NewLibMarks(bucketName string, storage *bbolt.DB) *LibMarks

func (*LibMarks) AddMark added in v1.12.0

func (r *LibMarks) AddMark(mark string) error

func (*LibMarks) MarkExists added in v1.12.0

func (r *LibMarks) MarkExists(mark string) (res bool)

type LibraryFiles added in v1.12.0

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

func NewLibraryFiles added in v1.12.0

func NewLibraryFiles(libs entities.Libraries) *LibraryFiles

func (*LibraryFiles) GetFB2 added in v1.12.0

func (r *LibraryFiles) GetFB2(book entities.BookInfo) (res fb2parse.FB2File, err error)

Jump to

Keyboard shortcuts

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