Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artwork ¶
type Artwork struct { ID string Title string Type string Description string Image image.URLs Created time.Time Tags []string Author user.User Width int64 Height int64 PageCount int64 CommentCount int64 LikeCount int64 ViewCount int64 BookmarkCount int64 Pages []Page }
Artwork data
func (*Artwork) FetchPages ¶
FetchPages get all pages for artwork from pixiv artwork pages api,
type Rank ¶
type Rank struct { /* required, possible rank modes: - daily (default) - weekly - monthly - rookie - original - male - female - daily_r18 - weekly_r18 - male_r18 - female_r18 - r18g */ Mode string /* optional, possible rank content: - all (default) - illust - ugoira - manga */ Content string Date time.Time Page int Items []RankItem }
Rank contains data for one rank page.
type SearchOption ¶ added in v0.4.0
type SearchOption func(*SearchOptions)
SearchOption mutate SearchOptions
func SearchOptionPage ¶ added in v0.4.0
func SearchOptionPage(page int) SearchOption
SearchOptionPage change page to retrive
type SearchOptions ¶ added in v0.4.0
type SearchOptions struct {
Page int
}
SearchOptions for Search
type SearchResult ¶
SearchResult holds search data and provide useful methods.
func Search ¶
func Search(ctx context.Context, query string, opts ...SearchOption) (result SearchResult, err error)
Search calls pixiv artwork search api.
func (SearchResult) Artworks ¶
func (r SearchResult) Artworks() []Artwork
Artworks appeared in search result.
Click to show internal directories.
Click to hide internal directories.