sites

package
v0.33.9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUrl string = "https://readallcomics.com"

Variables

This section is empty.

Functions

func LoadComicFromSource added in v0.9.1

func LoadComicFromSource(options *config.Options) ([]*core.Comic, error)

LoadComicFromSource will return an `comic` instance initialized based on the source

func MangaKakalotGetInfo added in v0.31.0

func MangaKakalotGetInfo(domain string, url string) (string, string)

func MangaKakalotInitialize added in v0.31.0

func MangaKakalotInitialize(comic *core.Comic) error
func MangaKakalotRetrieveIssueLinks(domain string, url string) ([]string, error)

Types

type BaseSite added in v0.12.3

type BaseSite interface {
	// Initialize will initialize the comic struct with the images link
	Initialize(comic *core.Comic) error

	// GetInfo will return the comic name and issue number
	GetInfo(url string) (string, string)

	// RetrieveIssueLinks will return the images links of a comic
	RetrieveIssueLinks() ([]string, error)
}

BaseSite specifies an implementation of a Site which allows to retrieve a manga/comic basics info and imges links

type Comicextra added in v0.12.3

type Comicextra struct {
	// contains filtered or unexported fields
}

Comicextra represents comicextra instance.

func NewComicextra added in v0.27.0

func NewComicextra(options *config.Options) *Comicextra

NewComicextra returs a comicextra instance.

func (*Comicextra) GetInfo added in v0.12.3

func (c *Comicextra) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given url.

func (*Comicextra) Initialize added in v0.12.3

func (c *Comicextra) Initialize(comic *core.Comic) error

Initialize will initialize the comic based on comicextra.com

func (c *Comicextra) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks gets a slice of urls for all issues in a comic

type MangaKakalot added in v0.31.0

type MangaKakalot struct {
	// contains filtered or unexported fields
}

func NewMangaKakalot added in v0.31.0

func NewMangaKakalot(options *config.Options) *MangaKakalot

NewMangaKakalot returns a new MangaKakalot instance.

func (*MangaKakalot) GetInfo added in v0.31.0

func (m *MangaKakalot) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given url.

func (*MangaKakalot) Initialize added in v0.31.0

func (m *MangaKakalot) Initialize(comic *core.Comic) error

Initialize loads links and metadata from mangakakalot

func (m *MangaKakalot) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks retrieve the issue links for the given comic.

type Mangadex added in v0.17.0

type Mangadex struct {
	// contains filtered or unexported fields
}

Mangadex represents a mangadex instance.

func NewMangadex added in v0.17.0

func NewMangadex(options *config.Options) *Mangadex

NewMangadex returns a Mangadex instance

func (*Mangadex) GetInfo added in v0.17.0

func (m *Mangadex) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given url.

func (*Mangadex) Initialize added in v0.17.0

func (m *Mangadex) Initialize(comic *core.Comic) error

Initialize loads links and metadata from mangadex

func (m *Mangadex) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks retrieve the issue links for the given comic.

type Manganato added in v0.31.0

type Manganato struct {
	// contains filtered or unexported fields
}

func NewManganato added in v0.31.0

func NewManganato(options *config.Options) *Manganato

NewManganato returns a new Manganato instance.

func (*Manganato) GetInfo added in v0.31.0

func (m *Manganato) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given url.

func (*Manganato) Initialize added in v0.31.0

func (m *Manganato) Initialize(comic *core.Comic) error

Initialize loads links and metadata from manganato

func (m *Manganato) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks retrieve the issue links for the given comic.

type Mangareader added in v0.12.3

type Mangareader struct {
	// contains filtered or unexported fields
}

Mangareader represents a Mangareader instance

func NewMangareader added in v0.27.0

func NewMangareader(options *config.Options) *Mangareader

NewMangareader returns a mangareader instance.

func (*Mangareader) GetInfo added in v0.12.3

func (m *Mangareader) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given URL.

func (*Mangareader) Initialize added in v0.12.3

func (m *Mangareader) Initialize(comic *core.Comic) error

Initialize loads links and metadata from mangareader

func (m *Mangareader) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks gets a slice of urls for all issues in a comic

type Mangatown added in v0.12.3

type Mangatown struct {
	// contains filtered or unexported fields
}

Mangatown represents a Mangatown instance.

func NewMangatown added in v0.27.0

func NewMangatown(options *config.Options) *Mangatown

NewMangatown returns a new mangatown instance.

func (*Mangatown) GetInfo added in v0.12.3

func (m *Mangatown) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given URL.

func (*Mangatown) Initialize added in v0.12.3

func (m *Mangatown) Initialize(comic *core.Comic) error

Initialize loads links and metadata from mangatown

func (m *Mangatown) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks gets a slice of urls for all issues in a comic

type ReadComicOnline added in v0.24.0

type ReadComicOnline struct {
	// contains filtered or unexported fields
}

ReadComicOnline represents a readcomiconline instance.

func NewReadComiconline added in v0.27.0

func NewReadComiconline(options *config.Options) *ReadComicOnline

NewReadComiconline returns a readcomiconline instance.

func (*ReadComicOnline) GetInfo added in v0.24.0

func (c *ReadComicOnline) GetInfo(url string) (string, string)

GetInfo extracts the basic info from the given url.

func (*ReadComicOnline) Initialize added in v0.24.0

func (c *ReadComicOnline) Initialize(comic *core.Comic) error

Initialize will initialize the comic based on ReadComicOnline.to

func (c *ReadComicOnline) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks gets a slice of urls for all issues in a comic

type Readallcomics added in v0.28.0

type Readallcomics struct {
	// contains filtered or unexported fields
}

Readallcomics represents a Readallcomics instance.

func NewReadallcomics added in v0.28.0

func NewReadallcomics(options *config.Options) *Readallcomics

NewReadallcomics returns a new Readallcomics instance.

func (*Readallcomics) GetInfo added in v0.28.0

func (r *Readallcomics) GetInfo(url string) (string, string)

GetInfo extracts the comic info from the given URL.

func (*Readallcomics) Initialize added in v0.28.0

func (r *Readallcomics) Initialize(comic *core.Comic) error

Initialize prepare the comic instance with links and images.

func (r *Readallcomics) RetrieveIssueLinks() ([]string, error)

RetrieveIssueLinks retrieves the links to all the issue.

Jump to

Keyboard shortcuts

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