Documentation
¶
Index ¶
- Variables
- func GetChapterIdFromArgs(args []string) string
- func GetChapterIdFromUrl(link string) string
- func GetMangaIdFromArgs(args []string) string
- func GetMangaIdFromUrl(link string) string
- type Chapter
- type ChapterAttr
- type ChapterFullInfo
- func (c ChapterFullInfo) ImagesBaseUrl() string
- func (c ChapterFullInfo) ImagesCompressedFiles() []string
- func (c ChapterFullInfo) ImagesFiles() []string
- func (c ChapterFullInfo) Language() string
- func (c ChapterFullInfo) Number() string
- func (c ChapterFullInfo) PagesCount() int
- func (c ChapterFullInfo) Title() string
- func (c ChapterFullInfo) Translator() string
- func (c ChapterFullInfo) UploadedBy() string
- func (c ChapterFullInfo) Volume() string
- type ChapterMetaInfo
- type Clientapi
- func (a Clientapi) DownloadImage(baseUrl, chapterHash, imageFilename string, isJpg bool) ([]byte, error)
- func (a Clientapi) Find(title string, limit, offset int, isDoujinshiAllow bool) (ResponseMangaList, error)
- func (a Clientapi) GetChapterImageList(chapterId string) (ResponseChapterImages, error)
- func (a Clientapi) GetChapterImagesInFullInfo(chap Chapter) (ChapterFullInfo, error)
- func (a Clientapi) GetChapterInfo(chapterId string) (ResponseChapter, error)
- func (a Clientapi) GetChaptersList(limit, offset int, mangaId, language string) (ResponseChapterList, error)
- func (a Clientapi) GetFullChaptersInfo(mangaId, language, translationGroup string, lowestChapter, highestChapter int) ([]ChapterFullInfo, error)
- func (a Clientapi) GetLastChapterFullInfo(mangaId, language, translationGroup string) (ChapterFullInfo, error)
- func (a Clientapi) GetMangaInfo(mangaId string) (MangaInfoResponse, error)
- func (a Clientapi) Ping() bool
- type ErrorDetail
- type ErrorResponse
- type MangaAttrib
- type MangaInfo
- func (mi MangaInfo) AltTitles() string
- func (mi MangaInfo) Artists() string
- func (mi MangaInfo) ArtistsArr() []string
- func (mi MangaInfo) Authors() string
- func (mi MangaInfo) AuthorsArr() []string
- func (mi MangaInfo) Description(language string) string
- func (mi MangaInfo) Links() string
- func (mi MangaInfo) LinksArr() []string
- func (mi MangaInfo) OriginalLanguage() string
- func (mi MangaInfo) Publisher() string
- func (mi MangaInfo) Status() string
- func (mi MangaInfo) Tags() string
- func (mi MangaInfo) TagsArr() []string
- func (mi MangaInfo) Title(language string) string
- func (mi MangaInfo) TranslatedLanguages() []string
- func (mi MangaInfo) Year() int
- type MangaInfoResponse
- type MangaTag
- type RelAttribute
- type Relationship
- type ResponseChapter
- type ResponseChapterImages
- type ResponseChapterList
- type ResponseMangaList
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetChapterIdFromArgs ¶ added in v1.8.0
func GetChapterIdFromUrl ¶ added in v1.8.0
func GetMangaIdFromArgs ¶ added in v1.8.0
func GetMangaIdFromUrl ¶ added in v1.0.1
Types ¶
type Chapter ¶
type Chapter struct { ID string `json:"id"` Type string `json:"type"` Attributes ChapterAttr `json:"attributes"` Relationships []Relationship `json:"relationships"` }
func (Chapter) GetMangaId ¶ added in v1.8.0
func (Chapter) PagesCount ¶ added in v1.2.0
func (Chapter) UploadedBy ¶ added in v1.2.0
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 ChapterFullInfo ¶ added in v1.2.0
type ChapterFullInfo struct { DownloadBaseURL string HashId string PngFiles []string JpgFiles []string // contains filtered or unexported fields }
func (ChapterFullInfo) ImagesBaseUrl ¶ added in v1.2.0
func (c ChapterFullInfo) ImagesBaseUrl() string
func (ChapterFullInfo) ImagesCompressedFiles ¶ added in v1.2.0
func (c ChapterFullInfo) ImagesCompressedFiles() []string
func (ChapterFullInfo) ImagesFiles ¶ added in v1.2.0
func (c ChapterFullInfo) ImagesFiles() []string
func (ChapterFullInfo) Language ¶ added in v1.2.0
func (c ChapterFullInfo) Language() string
func (ChapterFullInfo) Number ¶ added in v1.2.0
func (c ChapterFullInfo) Number() string
func (ChapterFullInfo) PagesCount ¶ added in v1.2.4
func (c ChapterFullInfo) PagesCount() int
func (ChapterFullInfo) Title ¶ added in v1.2.0
func (c ChapterFullInfo) Title() string
func (ChapterFullInfo) Translator ¶ added in v1.2.0
func (c ChapterFullInfo) Translator() string
func (ChapterFullInfo) UploadedBy ¶ added in v1.2.0
func (c ChapterFullInfo) UploadedBy() string
func (ChapterFullInfo) Volume ¶ added in v1.2.0
func (c ChapterFullInfo) Volume() string
type ChapterMetaInfo ¶ added in v1.2.0
type Clientapi ¶ added in v1.3.0
type Clientapi struct {
// contains filtered or unexported fields
}
func (Clientapi) DownloadImage ¶ added in v1.3.0
func (Clientapi) GetChapterImageList ¶ added in v1.3.0
func (a Clientapi) GetChapterImageList(chapterId string) (ResponseChapterImages, error)
func (Clientapi) GetChapterImagesInFullInfo ¶ added in v1.8.0
func (a Clientapi) GetChapterImagesInFullInfo(chap Chapter) (ChapterFullInfo, error)
func (Clientapi) GetChapterInfo ¶ added in v1.8.0
func (a Clientapi) GetChapterInfo(chapterId string) (ResponseChapter, error)
func (Clientapi) GetChaptersList ¶ added in v1.3.0
func (a Clientapi) GetChaptersList(limit, offset int, mangaId, language string) (ResponseChapterList, error)
func (Clientapi) GetFullChaptersInfo ¶ added in v1.3.0
func (a Clientapi) GetFullChaptersInfo(mangaId, language, translationGroup string, lowestChapter, highestChapter int) ([]ChapterFullInfo, error)
func (Clientapi) GetLastChapterFullInfo ¶ added in v1.9.0
func (a Clientapi) GetLastChapterFullInfo(mangaId, language, translationGroup string) (ChapterFullInfo, error)
func (Clientapi) GetMangaInfo ¶ added in v1.3.0
func (a Clientapi) GetMangaInfo(mangaId string) (MangaInfoResponse, error)
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) ArtistsArr ¶ added in v1.2.4
func (MangaInfo) AuthorsArr ¶ added in v1.2.4
func (MangaInfo) Description ¶ added in v1.2.4
func (MangaInfo) OriginalLanguage ¶ added in v1.2.4
func (MangaInfo) TranslatedLanguages ¶ added in v1.2.4
type MangaInfoResponse ¶
type MangaInfoResponse struct { Result string `json:"result"` Response string `json:"response"` Data MangaInfo `json:"data"` }
func (MangaInfoResponse) MangaInfo ¶ added in v1.2.4
func (m MangaInfoResponse) MangaInfo() MangaInfo
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 ResponseChapter ¶ added in v1.8.0
type ResponseChapter struct { Result string `json:"result"` Response string `json:"response"` Data Chapter `json:"data"` }
func (ResponseChapter) GetChapterInfo ¶ added in v1.8.0
func (r ResponseChapter) GetChapterInfo() Chapter
type ResponseChapterImages ¶
type ResponseChapterImages struct { Result string `json:"result"` BaseURL string `json:"baseUrl"` ChapterMetaInfo ChapterMetaInfo `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) GetChapters ¶ added in v1.2.0
func (l ResponseChapterList) GetChapters(lowest, highest int, transgp string) ([]Chapter, int)
type ResponseMangaList ¶
type ResponseMangaList struct { Result string `json:"result"` Response string `json:"response"` Data []MangaInfo `json:"data"` Limit int `json:"limit"` Offset int `json:"offset"` Total int `json:"total"` }
func (ResponseMangaList) List ¶ added in v1.2.4
func (ml ResponseMangaList) List() []MangaInfo
Click to show internal directories.
Click to hide internal directories.