Documentation ¶
Index ¶
- func NewBookListFromDir(dir, coverOutDir string, verbose, nocovers bool) (*BookList, []*IndexerError)
- type AuthorList
- type BookList
- func (l *BookList) Filtered(filterer func(a *models.Book) bool) *BookList
- func (l *BookList) GetAuthors() *AuthorList
- func (l *BookList) GetSeries() *SeriesList
- func (l *BookList) HasAuthor(id string) bool
- func (l *BookList) HasBook(id string) bool
- func (l *BookList) HasSeries(id string) bool
- func (l *BookList) SortBy(sort string) (nl *BookList, sorted bool)
- func (l *BookList) Sorted(sorter func(a, b *models.Book) bool) BookList
- type IndexerError
- type SeriesList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBookListFromDir ¶
func NewBookListFromDir(dir, coverOutDir string, verbose, nocovers bool) (*BookList, []*IndexerError)
NewBookListFromDir creates a BookList from a directory of books.
Types ¶
type AuthorList ¶
AuthorList is a list of authors
func (*AuthorList) Filtered ¶
func (l *AuthorList) Filtered(filterer func(a *models.Author) bool) *AuthorList
Filtered returns a copy of the AuthorList filtered by the function
func (*AuthorList) Sorted ¶
func (l *AuthorList) Sorted(sorter func(a, b *models.Author) bool) *AuthorList
Sorted returns a copy of the AuthorList sorted by the function
type BookList ¶
BookList represents a list of Books
func (*BookList) GetAuthors ¶
func (l *BookList) GetAuthors() *AuthorList
GetAuthors gets the authors in a BookList
func (*BookList) GetSeries ¶
func (l *BookList) GetSeries() *SeriesList
GetSeries gets the series in a BookList
type IndexerError ¶
IndexerError represents a indexer error.
type SeriesList ¶
SeriesList is a list of series
func (*SeriesList) Filtered ¶
func (l *SeriesList) Filtered(filterer func(a *models.Series) bool) *SeriesList
Filtered returns a copy of the SeriesList filtered by the function
func (*SeriesList) Sorted ¶
func (l *SeriesList) Sorted(sorter func(a, b *models.Series) bool) *SeriesList
Sorted returns a copy of the SeriesList sorted by the function
Click to show internal directories.
Click to hide internal directories.