fetcher

package
v0.0.0-...-a4d93e1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChapterItem

type ChapterItem struct {
	ChapterName string
	Href        string
	Content     string
}

ChapterItem contains information about the chapter

func (*ChapterItem) FetchContent

func (chapter *ChapterItem) FetchContent()

FetchContent get the chapter's content

type LatestChapterItem

type LatestChapterItem struct {
	LatestChapterName string
	LatestChapterURL  string
}

LatestChapterItem contains information about the latest chapter

type Novel

type Novel struct {
	Title    string
	URL      string
	Chapters []ChapterItem
}

Novel contains information about the novel taht you searched

func FetchResult

func FetchResult(query string) ([]Novel, error)

FetchResult get the result that you need

func (*Novel) FetchChapters

func (novel *Novel) FetchChapters()

FetchChapters search all chapters

Jump to

Keyboard shortcuts

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