inline

package
v0.0.0-...-674ef51 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericSelectorError

func GenericSelectorError(selectorType string, selector string, extraInfo string) string

func RunDownload

func RunDownload(ctx context.Context, args Args) error

func RunJSON

func RunJSON(ctx context.Context, args Args) error

Types

type Args

type Args struct {
	Query                  string `json:"query"`
	Provider               string `json:"provider"`
	MangaSelector          string `json:"manga_selector"`
	ChapterSelector        string `json:"chapter_selector"`
	ChapterPopulate        bool   `json:"chapter_populate"`
	PreferProviderMetadata bool   `json:"prefer_provider_metadata"`
	AnilistID              int    `json:"anilist_id"`
	AnilistDisable         bool   `json:"anilist_disable"`
	JSONOutput             bool   `json:"json_output,omitempty"`
}

type ChapterSelectorError

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

func (*ChapterSelectorError) Error

func (m *ChapterSelectorError) Error() string

type MangaResult

type MangaResult struct {
	Index    int                  `json:"index"`
	Manga    mangadata.Manga      `json:"manga"`
	Chapters *[]mangadata.Chapter `json:"chapters"`
	Anilist  *lmanilist.Manga     `json:"anilist"`
}

TODO: change Anilist to Metadata in general

type MangaSelectorError

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

func (*MangaSelectorError) Error

func (m *MangaSelectorError) Error() string

type QueryResult

type QueryResult struct {
	QueryParams Args          `json:"query_params"`
	Results     []MangaResult `json:"results"`
}

Jump to

Keyboard shortcuts

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