Documentation
¶
Index ¶
- func LuaDoc() string
- func LuaTemplate() string
- func NewLoader(script []byte, options Options) (libmangal.ProviderLoader[Manga, Volume, Chapter, Page], error)
- type Chapter
- type IntoLValue
- type Loader
- type Manga
- type Options
- type Page
- type Provider
- func (p Provider) ChapterPages(ctx context.Context, log libmangal.LogFunc, chapter Chapter) ([]Page, error)
- func (p Provider) GetPageImage(ctx context.Context, log libmangal.LogFunc, page Page) ([]byte, error)
- func (p Provider) Info() libmangal.ProviderInfo
- func (p Provider) MangaVolumes(ctx context.Context, log libmangal.LogFunc, manga Manga) ([]Volume, error)
- func (p Provider) SearchMangas(ctx context.Context, log libmangal.LogFunc, query string) ([]Manga, error)
- func (p Provider) VolumeChapters(ctx context.Context, log libmangal.LogFunc, volume Volume) ([]Chapter, error)
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LuaDoc ¶
func LuaDoc() string
LuaDoc will generate library documentation so that language servers can benefit from it.
It's optimized for the https://github.com/LuaLS/lua-language-server
func LuaTemplate ¶
func LuaTemplate() string
LuaTemplate will generate template for the valid lua script used by this provider.
Types ¶
type Chapter ¶
type Chapter struct { Title string `gluamapper:"title"` URL string `gluamapper:"url"` Number float32 `gluamapper:"number"` // contains filtered or unexported fields }
func (Chapter) ComicInfoXml ¶
func (c Chapter) ComicInfoXml() (comicInfo libmangal.ComicInfoXml, ok bool)
func (Chapter) Info ¶
func (c Chapter) Info() libmangal.ChapterInfo
func (Chapter) IntoLValue ¶
type IntoLValue ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (Loader) Info ¶
func (l Loader) Info() libmangal.ProviderInfo
type Manga ¶
type Manga struct { Title string `gluamapper:"title"` AnilistSearch string `gluamapper:"anilist_search"` URL string `gluamapper:"url"` ID string `gluamapper:"id"` Cover string `gluamapper:"cover"` Banner string `gluamapper:"banner"` // contains filtered or unexported fields }
func (Manga) IntoLValue ¶
func (Manga) SeriesJson ¶
func (m Manga) SeriesJson() (seriesJson libmangal.SeriesJson, ok bool)
type Options ¶
func DefaultOptions ¶
func DefaultOptions() Options
type Page ¶
type Page struct { Extension string `gluamapper:"extension"` // URL is the url of the page image URL string `gluamapper:"url"` Headers map[string]string `gluamapper:"headers"` Cookies map[string]string `gluamapper:"cookies"` // contains filtered or unexported fields }
func (Page) GetExtension ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (Provider) ChapterPages ¶
func (Provider) GetPageImage ¶
func (Provider) Info ¶
func (p Provider) Info() libmangal.ProviderInfo
func (Provider) MangaVolumes ¶
func (Provider) SearchMangas ¶
type Volume ¶
type Volume struct { Number int `gluamapper:"number"` // contains filtered or unexported fields }
func (Volume) Info ¶
func (v Volume) Info() libmangal.VolumeInfo
func (Volume) IntoLValue ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.