Documentation
¶
Index ¶
- Variables
- func DownloadImage(baseUrl, chapterHash, imageFilename string, isJpg bool) (io.Reader, error)
- func NewClient(userAgent string) clientapi
- type Chapter
- type ChapterAttr
- type ChapterData
- type ErrorDetail
- type ErrorResponse
- type MangaAttrib
- type MangaInfo
- type MangaInfoResponse
- type MangaTag
- type RelAttribute
- type Relationship
- type ResponseChapterImages
- type ResponseChapterList
- func (l ResponseChapterList) FirstChapter() string
- func (l ResponseChapterList) FirstChapterPages() int
- func (l ResponseChapterList) FirstID() string
- func (l ResponseChapterList) FirstTranslateGroup() string
- func (l ResponseChapterList) FirstTranslateGroupDescription() string
- func (l ResponseChapterList) FirstTranslationLanguage() string
- func (l ResponseChapterList) FirstVolume() string
- func (l ResponseChapterList) IsTranslateGroup(translateGroup string) bool
- type ResponseMangaList
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DownloadImage ¶
Types ¶
type Chapter ¶
type Chapter struct { ID string `json:"id"` Type string `json:"type"` Attributes ChapterAttr `json:"attributes"` Relationships []Relationship `json:"relationships"` }
type ChapterAttr ¶
type ChapterAttr struct { Volume string `json:"volume"` Chapter string `json:"chapter"` Title string `json:"title"` TranslatedLanguage string `json:"translatedLanguage"` ExternalUrl string `json:"externalUrl"` PublishAt time.Time `json:"publishAt"` ReadableAt time.Time `json:"readableAt"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Pages int `json:"pages"` Version int `json:"version"` }
type ChapterData ¶
type ErrorDetail ¶
type ErrorResponse ¶
type ErrorResponse struct { Result string `json:"result"` Errors []ErrorDetail `json:"errors"` }
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type MangaAttrib ¶
type MangaAttrib struct { Title map[string]string `json:"title"` AltTitles []map[string]string `json:"altTitles"` Description map[string]string `json:"description"` IsLocked bool `json:"isLocked"` Links map[string]string `json:"links"` OriginalLanguage string `json:"originalLanguage"` LastVolume string `json:"lastVolume"` LastChapter string `json:"lastChapter"` PublicationDemographic string `json:"publicationDemographic"` Status string `json:"status"` Year int `json:"year"` ContentRating string `json:"contentRating"` Tags []MangaTag `json:"tags"` State string `json:"state"` ChapterNumbersResetOnNewVolume bool `json:"chapterNumbersResetOnNewVolume"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Version int `json:"version"` AvailableTranslatedLanguages []string `json:"availableTranslatedLanguages"` LatestUploadedChapter string `json:"latestUploadedChapter"` }
type MangaInfo ¶
type MangaInfo struct { ID string `json:"id"` Type string `json:"type"` Attributes MangaAttrib `json:"attributes"` Relationships []Relationship `json:"relationships"` }
func (MangaInfo) GetAltTitles ¶
func (MangaInfo) GetArtists ¶
func (MangaInfo) GetAuthors ¶
type MangaInfoResponse ¶
type MangaTag ¶
type MangaTag struct { ID string `json:"id"` Type string `json:"type"` Attributes struct { Name map[string]string `json:"name"` Description struct{} `json:"description"` Group string `json:"group"` Version int `json:"version"` } `json:"attributes"` Relationships []interface{} `json:"relationships"` }
type RelAttribute ¶
type Relationship ¶
type Relationship struct { ID string `json:"id"` Type string `json:"type"` Related string `json:"related,omitempty"` Attributes RelAttribute `json:"attributes"` }
type ResponseChapterImages ¶
type ResponseChapterImages struct { Result string `json:"result"` BaseURL string `json:"baseUrl"` Chapter ChapterData `json:"chapter"` }
type ResponseChapterList ¶
type ResponseChapterList struct { Result string `json:"result"` Response string `json:"response"` Data []Chapter `json:"data"` Limit int `json:"limit"` Offset int `json:"offset"` Total int `json:"total"` }
func (ResponseChapterList) FirstChapter ¶
func (l ResponseChapterList) FirstChapter() string
func (ResponseChapterList) FirstChapterPages ¶
func (l ResponseChapterList) FirstChapterPages() int
func (ResponseChapterList) FirstID ¶
func (l ResponseChapterList) FirstID() string
func (ResponseChapterList) FirstTranslateGroup ¶
func (l ResponseChapterList) FirstTranslateGroup() string
func (ResponseChapterList) FirstTranslateGroupDescription ¶
func (l ResponseChapterList) FirstTranslateGroupDescription() string
func (ResponseChapterList) FirstTranslationLanguage ¶
func (l ResponseChapterList) FirstTranslationLanguage() string
func (ResponseChapterList) FirstVolume ¶
func (l ResponseChapterList) FirstVolume() string
func (ResponseChapterList) IsTranslateGroup ¶
func (l ResponseChapterList) IsTranslateGroup(translateGroup string) bool
Click to show internal directories.
Click to hide internal directories.