Documentation ¶
Index ¶
- type Illust
- type IllustPage
- type IllustTag
- type Pixiv
- func (p *Pixiv) Close()
- func (p *Pixiv) ComplateIllust(illust *Illust) (err error)
- func (p *Pixiv) ComplateIllustMultiple(illusts *[]Illust) (err error)
- func (p *Pixiv) GetBookmarks(userID string) (illusts []Illust, err error)
- func (p *Pixiv) GetFollows(userID string) (users []User, err error)
- func (p *Pixiv) GetIllust(illustID string) (r Illust, err error)
- func (p *Pixiv) GetUserIllustsID(userID string) (illusts []Illust, err error)
- func (p *Pixiv) SetProxy(proxy string) (err error)
- func (p *Pixiv) TypicalFilenamesMatcher(name string) (ok bool, id string)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Illust ¶
type Illust struct { ID string `json:"id"` IlustID string `json:"illustId"` Title string `json:"title"` IllustTitle string `json:"illustTitle"` IllustComment string `json:"illustComment"` IllustType int `json:"illustType"` XRestrict int `json:"xRestrict"` Sl int `json:"sl"` URL string `json:"url"` Pages []IllustPage URLs struct { Mini string `json:"mini"` Thumb string `json:"thumb"` Small string `json:"small"` Regular string `json:"regular"` Original string `json:"original"` } `json:"urls"` Description string `json:"description"` Tags struct { AuthorID string `json:"authorId"` IsLocked bool `json:"isLocked"` Tags []IllustTag `json:"tags"` Writable bool `json:"writable"` } `json:"tags,omitempty"` UserID string `json:"userId"` UserName string `json:"userName"` UserAccount string `json:"userAccount"` Width int `json:"width"` Height int `json:"height"` PageCount int `json:"pageCount"` IsBookmarkable bool `json:"isBookmarkable"` Alt string `json:"alt"` IsAdContainer bool `json:"isAdContainer"` TitleCaptionTranslation struct { WorkTitle string `json:"workTitle"` WorkCaption string `json:"workCaption"` } `json:"titleCaptionTranslation"` CreateDate string `json:"createDate"` UpdateDate string `json:"updateDate"` IsUnlisted bool `json:"isUnlisted"` ProfileImageURL string `json:"profileImageUrl"` // contains filtered or unexported fields }
Illust .
func (*Illust) TagsString ¶
TagsString returns tags in one string separated by "," character
type IllustPage ¶
type IllustPage struct { URLs struct { Mini string `json:"mini"` Thumb string `json:"thumb"` Small string `json:"small"` Regular string `json:"regular"` Original string `json:"original"` } `json:"urls"` Width int `json:"width"` Height int `json:"height"` }
IllustPage .
type IllustTag ¶
type IllustTag struct { Tag string `json:"tag"` Locked bool `json:"locked"` Deletable bool `json:"deletable"` UserID string `json:"userId"` UserName string `json:"userName"` Romaji string `json:"romaji"` Translation struct { En string `json:"en"` } `json:"translation"` }
IllustTag .
type Pixiv ¶
type Pixiv struct { Ua string RetryCount int ItemsPerRequest int WorkDirectory string DownloadChannel chan Illust // contains filtered or unexported fields }
Pixiv is API
func (*Pixiv) ComplateIllust ¶
ComplateIllust .
func (*Pixiv) ComplateIllustMultiple ¶
ComplateIllustMultiple .
func (*Pixiv) GetBookmarks ¶
GetBookmarks .
func (*Pixiv) GetFollows ¶
GetFollows .
func (*Pixiv) GetUserIllustsID ¶
GetUserIllustsID .
Click to show internal directories.
Click to hide internal directories.