Documentation ¶
Index ¶
- Variables
- func CoverLink(mediaID int, format string) string
- func ImageLink(mediaID, n int, format string) string
- func ParseComic(r io.Reader) (gnhentai.Doujinshi, error)
- func ParseRelated(r io.Reader) ([]gnhentai.Doujinshi, error)
- func ParseSearch(r io.Reader) ([]gnhentai.Doujinshi, error)
- func ThumbnailLink(mediaID, n int, format string) string
- type Downloader
- type Option
- type Parser
- func (c Parser) ByID(id int) (gnhentai.Doujinshi, error)
- func (c Parser) Random() (gnhentai.Doujinshi, error)
- func (c Parser) Related(id int) ([]gnhentai.Doujinshi, error)
- func (c Parser) Search(q string, page int) ([]gnhentai.Doujinshi, error)
- func (c Parser) SearchByTag(tag gnhentai.Tag, page int) ([]gnhentai.Doujinshi, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoID = errors.New("no ID to parse")
Functions ¶
func ThumbnailLink ¶
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(client *http.Client) Downloader
func (Downloader) Cover ¶
func (d Downloader) Cover(mediaID int) (io.ReadCloser, error)
func (*Downloader) ImageFormat ¶
func (d *Downloader) ImageFormat() string
func (Downloader) Page ¶
func (d Downloader) Page(mediaID, n int) (io.ReadCloser, error)
func (*Downloader) SetImageFormat ¶
func (d *Downloader) SetImageFormat(format string)
func (Downloader) Thumbnail ¶
func (d Downloader) Thumbnail(mediaID, n int) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.