Documentation ¶
Index ¶
- type Api
- func (a *Api) DeleteBooks(bookIds []string, library string) error
- func (a *Api) GetAllBooksIds() ([]int64, error)
- func (a *Api) GetAllPublisher() ([]string, error)
- func (a *Api) GetBook(id string, library string) (int64, io.ReadCloser, error)
- func (a *Api) GetBookMetaDatas(ids []int64, library string) ([]Book, error)
- func (a *Api) GetCover(id string, library string) (int64, io.ReadCloser, error)
- func (a *Api) UpdateMetaData(id string, metadata map[string]interface{}, library string) (map[string]Content, error)
- type Book
- type Content
- type FormatSizes
- type Identifiers
- type LangNames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
func (*Api) GetAllBooksIds ¶
func (*Api) GetAllPublisher ¶
func (*Api) GetBookMetaDatas ¶
type Book ¶
type Book struct { AuthorSort string `json:"author_sort"` Authors []string `json:"authors"` Comments string `json:"comments"` ID int64 `json:"id"` Isbn string `json:"isbn"` Languages []string `json:"languages"` LastModified time.Time `json:"last_modified"` PubDate time.Time `json:"pubdate"` Publisher string `json:"publisher"` SeriesIndex float64 `json:"series_index"` Size int64 `json:"size"` Tags []string `json:"tags"` Rating float64 `json:"rating"` Title string `json:"title"` Identifiers map[string]string `json:"identifiers"` }
type Content ¶
type Content struct { Formats []string `json:"formats"` FormatSizes FormatSizes `json:"format_sizes"` Authors []string `json:"authors"` Languages []string `json:"languages"` Publisher string `json:"publisher"` Identifiers map[string]string `json:"identifiers"` AuthorSort string `json:"author_sort"` Comments string `json:"comments"` LastModified time.Time `json:"last_modified"` PubDate time.Time `json:"pubdate"` SeriesIndex float64 `json:"series_index"` Sort string `json:"sort"` Size int64 `json:"size"` Timestamp string `json:"timestamp"` Title string `json:"title"` UUID string `json:"uuid"` ID string `json:"#id"` Isbn string `json:"#isbn"` UrlsFromIdentifiers [][]string `json:"urls_from_identifiers"` LangNames LangNames `json:"lang_names"` Tags []string `json:"tags"` Rating float64 `json:"rating"` }
type FormatSizes ¶
type FormatSizes struct {
Epub int64 `json:"EPUB"`
}
type Identifiers ¶
type Identifiers struct {
Isbn string `json:"isbn"`
}
Click to show internal directories.
Click to hide internal directories.