inline

package
v0.0.0-...-d9242b9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(options *Options) (err error)

Types

type ChaptersFilter

type ChaptersFilter func([]*source.Chapter) ([]*source.Chapter, error)

func ParseChaptersFilter

func ParseChaptersFilter(description string) (ChaptersFilter, error)

type Manga

type Manga struct {
	// Source that the manga belongs to.
	Source string `json:"source" jsonschema:"description=Source that the manga belongs to."`
	// Mangal variant of the manga
	Mangal *source.Manga `json:"mangal" jsonschema:"description=Mangal variant of the manga"`
	// Anilist is the closest anilist match to mangal manga
	Anilist *anilist.Manga `json:"anilist" jsonschema:"description=Anilist is the closest anilist match to mangal manga"`
}

type MangaPicker

type MangaPicker func([]*source.Manga) *source.Manga

func ParseMangaPicker

func ParseMangaPicker(query, description string) (MangaPicker, error)

type Options

type Options struct {
	Out                 io.Writer
	Sources             []source.Source
	IncludeAnilistManga bool
	Download            bool
	Json                bool
	PopulatePages       bool
	Query               string
	MangaPicker         mo.Option[MangaPicker]
	ChaptersFilter      mo.Option[ChaptersFilter]
}

type Output

type Output struct {
	Query  string   `json:"query" jsonschema:"description=Query that was used to search for the manga."`
	Result []*Manga `json:"result" jsonschema:"description=Result of the search."`
}

Jump to

Keyboard shortcuts

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