mangad

package
v0.0.0-...-acf6da5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string) (map[int64][]Config, error)

Types

type Config

type Config struct {
	Title   string `json:"title"`
	Url     string `json:"url"`
	Source  int64  `json:"source"`
	PkgName string `json:"pkgName"`
}

type Manga

type Manga struct {
	*tachidesk.Manga
	*Mangad
	Title string
}

func (*Manga) DownloadChapter

func (m *Manga) DownloadChapter(c tachidesk.Chapter) error

func (*Manga) GetChapters

func (m *Manga) GetChapters() ([]tachidesk.Chapter, error)

func (*Manga) GetDownloaded

func (m *Manga) GetDownloaded() (map[int]bool, error)

func (*Manga) Process

func (m *Manga) Process() error

type Mangad

type Mangad struct {
	BaseURL string
	// contains filtered or unexported fields
}

func New

func New(baseURL string) *Mangad

func (*Mangad) Manga

func (t *Mangad) Manga(source int64, pkgName, url, title string) (*Manga, error)

func (*Mangad) Ping

func (t *Mangad) Ping() error

func (*Mangad) Run

func (t *Mangad) Run(conf map[int64][]Config)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL