Documentation ¶
Index ¶
- type API
- type Illust
- func (i *Illust) Detail(ctx context.Context, illustID uint64) (*pixiv.Illust, error)
- func (i *Illust) Illust(ctx context.Context) ([]*pixiv.TrendingTag, error)
- func (i *Illust) Ranking(ctx context.Context, q *RankingQuery) ([]*pixiv.Illust, string, error)
- func (i *Illust) Recommended(ctx context.Context, q *IllustRecommendedQuery) ([]*pixiv.Illust, string, error)
- type IllustRecommendedQuery
- type RankingMode
- type RankingQuery
- type Search
- type SearchIllustQuery
- type SearchSortOrder
- type SearchTarget
- type TrendingTags
- type User
- type UserFollowingQuery
- type UserIllustQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Illust ¶
type Illust struct { BasePath string // contains filtered or unexported fields }
func (*Illust) Recommended ¶
type IllustRecommendedQuery ¶
type RankingMode ¶
type RankingMode string
const ( RankingModeDay RankingMode = "day" RankingModeWeek RankingMode = "week" RankingModeMonth RankingMode = "month" RankingModeDayMale RankingMode = "male" RankingModeDayFemale RankingMode = "female" RankingModeWeekOriginal RankingMode = "week_original" RankingModeWeekRookie RankingMode = "week_rookie" RankingModeDayR18 RankingMode = "day_r18" RankingModeDayMaleR18 RankingMode = "day_male_r18" RankingModeDayFemaleR18 RankingMode = "day_female_r18" RankingModeWeekR18 RankingMode = "week_r18" RankingModeWeekR18G RankingMode = "week_r18g" )
type RankingQuery ¶
type RankingQuery struct { Mode RankingMode `url:"mode"` // yyyy-mm-dd (2006-01-02) Date string `url:"date,omitempty"` Offset int `url:"offset,omitempty"` }
type SearchIllustQuery ¶
type SearchIllustQuery struct { Word string `url:"word"` SearchTarget SearchTarget `url:"search_target"` Sort SearchSortOrder `url:"sort,omitempty"` BookmarkNumMin int `url:"bookmark_num_min,omitempty"` BookmarkNumMax int `url:"bookmark_num_max,omitempty"` // yyyy-mm-dd (2006-01-02) StartDate string `url:"start_date,omitempty"` // yyyy-mm-dd (2006-01-02) EndDate string `url:"end_date,omitempty"` }
type SearchSortOrder ¶
type SearchSortOrder string
const ( SearchSortOrderDateDesc SearchSortOrder = "date_desc" SearchSortOrderDateAsc SearchSortOrder = "date_asc" SearchSortOrderPopularDesc SearchSortOrder = "popular_desc" SearchSortOrderPopularMaleDesc SearchSortOrder = "popular_male_desc" SearchSortOrderPopularFemaleDesc SearchSortOrder = "popular_female_desc" )
type SearchTarget ¶
type SearchTarget string
const ( SearchTargetPartialMatchForTags SearchTarget = "partial_match_for_tags" SearchTargetExactMatchForTags SearchTarget = "exact_match_for_tags" SearchTargetTitleAndCaption SearchTarget = "title_and_caption" )
type TrendingTags ¶
type TrendingTags struct { BasePath string // contains filtered or unexported fields }
func NewTrendingTags ¶
func NewTrendingTags(client pixiv.Session) *TrendingTags
type User ¶
type User struct { BasePath string // contains filtered or unexported fields }
type UserFollowingQuery ¶
type UserIllustQuery ¶
Click to show internal directories.
Click to hide internal directories.