sites

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Healthcheck added in v0.27.0

func Healthcheck(url string) (bool, string)

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

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
}

func NewComicextra added in v0.27.0

func NewComicextra(options *config.Options) *Comicextra

func (*Comicextra) GetInfo added in v0.12.3

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

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 Mangadex added in v0.17.0

type Mangadex struct {
	Client *mangadex.Client
	// contains filtered or unexported fields
}

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)

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)

type Mangareader added in v0.12.3

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

func NewMangareader added in v0.27.0

func NewMangareader(options *config.Options) *Mangareader

func (*Mangareader) GetInfo added in v0.12.3

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

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
}

func NewMangatown added in v0.27.0

func NewMangatown(options *config.Options) *Mangatown

func (*Mangatown) GetInfo added in v0.12.3

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

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
}

func NewReadComiconline added in v0.27.0

func NewReadComiconline(options *config.Options) *ReadComicOnline

func (*ReadComicOnline) GetInfo added in v0.24.0

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

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

Jump to

Keyboard shortcuts

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