Documentation ¶
Index ¶
Constants ¶
View Source
const BaseNHentaiLink = "https://nhentai.net"
Variables ¶
This section is empty.
Functions ¶
func DownloadAll ¶
Types ¶
type Doujinshi ¶
type Doujinshi struct { // ID is unique identification number of Doujinshi. // Note: parser does not parse ID of Doujinshi. ID int `json:"id"` MediaID int `json:"media_id"` Title Title `json:"title"` Tags []Tag `json:"tags"` Scanlator string `json:"scanlator"` // NumPages is number of manga pages. NumPages int `json:"num_pages"` NumFavorites int `json:"num_favorites"` UploadDate time.Time `json:"upload_date"` Images Images `json:"images"` }
func (*Doujinshi) UnmarshalJSON ¶
type Downloader ¶
type Downloader interface { Page(mediaID, n int) (io.ReadCloser, error) Thumbnail(mediaID int, n int) (io.ReadCloser, error) Cover(mediaID int) (io.ReadCloser, error) }
type JSONTimestamp ¶
JSONTimestamp
func (*JSONTimestamp) UnmarshalJSON ¶
func (t *JSONTimestamp) UnmarshalJSON(b []byte) error
UnmarshalJSON parses json number into time.Time
Click to show internal directories.
Click to hide internal directories.