repos

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 20 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, cache *cache.Cache,
	repoLib entities.IBooksLibraryRepo, libs entities.Libraries,
) *BooksInfo

func (*BooksInfo) Close added in v1.12.0

func (r *BooksInfo) Close() error

func (*BooksInfo) FindBooks added in v1.13.0

func (r *BooksInfo) FindBooks(queryStr, tagName, tagValue string, pager pagination.IPager) ([]entities.BookInfo, error)

func (*BooksInfo) FindByID added in v1.13.0

func (r *BooksInfo) FindByID(id string) (entities.BookInfo, error)

func (*BooksInfo) GetAuthorsByLetter added in v1.13.0

func (r *BooksInfo) GetAuthorsByLetter(letter string) ([]string, error)

func (*BooksInfo) GetGenres added in v1.13.0

func (r *BooksInfo) GetGenres(pager pagination.IPager) (entities.GenresIndex, error)

func (*BooksInfo) GetItems added in v1.13.0

func (r *BooksInfo) GetItems(q query.Query, pager pagination.IPager,
	sort []search.SearchSort, highlight *bleve.HighlightRequest, fields ...string,
) ([]entities.BookInfo, error)

func (*BooksInfo) GetOtherAuthorBooks added in v1.13.0

func (r *BooksInfo) GetOtherAuthorBooks(authors string, curBook *entities.BookInfo) (res []entities.BookInfo, err error)

func (*BooksInfo) GetOtherAuthorSeries added in v1.13.0

func (r *BooksInfo) GetOtherAuthorSeries(authors, curSeries string) (res map[string]int, err error)

func (*BooksInfo) GetSeriesBooks added in v1.13.0

func (r *BooksInfo) GetSeriesBooks(series string, curBook *entities.BookInfo) (res []entities.BookInfo, err error)

func (*BooksInfo) GetSeriesByLetter added in v1.13.0

func (r *BooksInfo) GetSeriesByLetter(letter string) ([]string, error)

func (*BooksInfo) GetStats added in v1.13.0

func (r *BooksInfo) GetStats() (map[string]uint64, error)

func (*BooksInfo) Remove added in v1.13.0

func (r *BooksInfo) Remove(bookID string) error

func (*BooksInfo) SaveBook added in v1.12.0

func (r *BooksInfo) SaveBook(book entities.BookInfo) (err 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