Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Novel ¶
type Novel struct { ID string Title string Description string CoverURL string Content string Created time.Time Uploaded time.Time Author user.User Series Series Tags []string TextCount int64 PageCount int64 CommentCount int64 LikeCount int64 ViewCount int64 BookmarkCount int64 // contains filtered or unexported fields }
Novel data
func (*Novel) Fetch ¶
Fetch additional data from pixiv single novel api (require login), only fetch once for same struct.
func (*Novel) FetchWithClient ¶
FetchWithClient do request with given client.
type SearchResult ¶
SearchResult holds search data and provide useful methods.
func Search ¶
func Search(query string, page int) (result SearchResult, err error)
Search calls pixiv novel search api.
func SearchWithClient ¶
SearchWithClient do request with given client.
func (SearchResult) ForEach ¶
func (r SearchResult) ForEach(iterator func(key, value gjson.Result) bool)
ForEach iterates through novel data items.
func (SearchResult) Novels ¶
func (r SearchResult) Novels() []Novel
Novels appeared in the search result.
Click to show internal directories.
Click to hide internal directories.