Documentation
¶
Index ¶
- type BestRatedBook
- type BestRatedBooksResponse
- type BookPage
- type BookPageAuthor
- type BookPageChapter
- type BookWithChapters
- type ChapterPage
- type Client
- func (c *Client) Close()
- func (c *Client) GetBestRatedBooks(page int) (BestRatedBooksResponse, error)
- func (c *Client) GetBookPage(bookID int) (*BookPage, error)
- func (c *Client) GetBookWithChapters(bookID int) (*BookWithChapters, error)
- func (c *Client) GetChapterPage(bookID, chapterID int) (*ChapterPage, error)
- func (c *Client) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BestRatedBook ¶
type BestRatedBooksResponse ¶
type BestRatedBooksResponse struct {
Books []BestRatedBook
LastPage int
}
type BookPage ¶
type BookPage struct {
ID int
Name string
CoverURL string
Description string
Author BookPageAuthor
Chapters []BookPageChapter
Tags []string
}
type BookPageAuthor ¶
type BookWithChapters ¶
type BookWithChapters struct {
Book *BookPage
Chapters []*ChapterPage
}
type ChapterPage ¶
type ChapterPage struct {
Content string
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBestRatedBooks ¶
func (c *Client) GetBestRatedBooks(page int) (BestRatedBooksResponse, error)
func (*Client) GetBookWithChapters ¶
func (c *Client) GetBookWithChapters(bookID int) (*BookWithChapters, error)
func (*Client) GetChapterPage ¶
func (c *Client) GetChapterPage(bookID, chapterID int) (*ChapterPage, error)
Click to show internal directories.
Click to hide internal directories.