Documentation
¶
Index ¶
- func DownloadAndZip(manga Manga, chapter Chapter, outputFolder string) error
- func NewID() string
- func NewIDFromData(data []int) string
- func RemoveNonAlphanumerical(input string) string
- type Chapter
- type Manga
- type MangaDex
- type MangaHub
- type MangaProvider
- type MangaSee
- type MangaStream
- type Page
- type ReadMangaToday
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndZip ¶
DownloadAndZip Downloads and generate a zip of a manga chapter
func NewIDFromData ¶
NewIDFromData Generates a repeatable 20 digit string id based on the input seed
func RemoveNonAlphanumerical ¶
RemoveNonAlphanumerical removes non alphanumerical characters from a string
Types ¶
type Chapter ¶
type Chapter struct { ID string `storm:"id"` MangaID string `storm:"index"` Major uint16 `storm:"index"` Minor uint8 `storm:"index"` Version uint8 Provider string Link string DownloadedDate time.Time }
Chapter model
func NewChapter ¶
func NewChapter(mangaID string, provider string, major uint16, minor uint8, version uint8, link string, downloadedDate time.Time) Chapter
NewChapter creates a new Chapter instance
type Manga ¶
type Manga struct { ID string `storm:"id"` Link string Name string `storm:"index"` Provider string Folder string }
Manga model
func (Manga) ListChapters ¶
ListChapters lists all chapters for the current manga available in the provider
type MangaDex ¶
type MangaDex struct{}
MangaDex provider implementation
func (MangaDex) GetMangaLink ¶
GetMangaLink satisfies MangaProvider interface
func (MangaDex) ListChapters ¶
ListChapters satisfies MangaProvider interface
type MangaHub ¶
type MangaHub struct{}
MangaHub provider implementation
func (MangaHub) GetMangaLink ¶
GetMangaLink satisfies MangaProvider interface
func (MangaHub) ListChapters ¶
ListChapters satisfies MangaProvider interface
type MangaProvider ¶
type MangaProvider interface { ListChapters(manga Manga) ([]Chapter, error) ListPages(chapter Chapter) ([]Page, error) GetMangaLink(name string) (string, error) }
MangaProvider interface for external manga providers
func ProviderFromString ¶
func ProviderFromString(provider string) (MangaProvider, error)
ProviderFromString provides a factory to get a MangaProvider instance from a type string
type MangaSee ¶
type MangaSee struct{}
MangaSee provider implementation
func (MangaSee) GetMangaLink ¶
GetMangaLink satisfies MangaProvider interface
func (MangaSee) ListChapters ¶
ListChapters satisfies MangaProvider interface
type MangaStream ¶
type MangaStream struct{}
MangaStream provider implementation
func (MangaStream) GetMangaLink ¶
func (ms MangaStream) GetMangaLink(name string) (string, error)
GetMangaLink satisfies MangaProvider interface
func (MangaStream) ListChapters ¶
func (ms MangaStream) ListChapters(manga Manga) ([]Chapter, error)
ListChapters satisfies MangaProvider interface
type ReadMangaToday ¶
type ReadMangaToday struct{}
ReadMangaToday provider implementation
func (ReadMangaToday) GetMangaLink ¶
func (rmt ReadMangaToday) GetMangaLink(name string) (string, error)
GetMangaLink satisfies MangaProvider interface
func (ReadMangaToday) ListChapters ¶
func (rmt ReadMangaToday) ListChapters(manga Manga) ([]Chapter, error)
ListChapters satisfies MangaProvider interface