Documentation ¶
Index ¶
- Variables
- func DecodeURL(str string) (string, error)
- func EncodeURL(str string) string
- func ExplainLink(url string) (address, drive, page string)
- func GetGuide(drive string) reader.Guide
- func GetGuidex(drive string) reader.Guide
- func GetReader(drive string) reader.Reader
- func GetReaderx(drive string) reader.Reader
- type Card
- type Catalog
- type DemoItem
- type Item
- func GetAbouts() []Item
- func GetBooks(url string) []Item
- func GetChapter(url string) []Item
- func GetChapters(url string) []Item
- func GetClassify() []Item
- func GetDrives() []Item
- func GetHelps() []Item
- func GetRanks() []Item
- func GetResource(url string) []Item
- func GetResources() []Item
- func GetTopics() []Item
- func GetWaitExamineClassify() []Item
- type Link
Constants ¶
This section is empty.
Variables ¶
View Source
var GuideList = map[string]reader.Guide{ "qidian": &reader.QidianReader{}, "zongheng": &reader.ZonghengReader{}, "17k": &reader.SeventeenKReader{}, "xxsy": &reader.XxsyReader{}, "baidu": &reader.BaiduReader{}, "hongxiu": &reader.HongxiuReader{}, "luoqiu": &reader.MLuoqiuReader{}, "booktxt": &reader.BooktxtReader{}, "paoshu8": &reader.Paoshu8Reader{}, "qkshu6": &reader.Qkshu6Reader{}, "shuge": &reader.ShugeReader{}, "qu": &reader.QuReader{}, "jx": &reader.JxReader{}, "uxiaoshuo": &reader.UxiaoshuoReader{}, "soe8": &reader.Soe8Reader{}, "bxks": &reader.BxksReader{}, "xin18": &reader.Xin18Reader{}, "bxwx": &reader.BxwxReader{}, "biqugeinfo": &reader.BiqugeinfoReader{}, "mcmssc": &reader.McmsscReader{}, "xs280": &reader.Xs280Reader{}, "xbiquge": &reader.XbiqugeReader{}, "biquyun": &reader.BiquyunReader{}, "r2hm": &reader.R2hmReader{}, "manwuyu": &reader.ManwuyuReader{}, "manhwa": &reader.ManhwaReader{}, "aimeizi5": &reader.Aimeizi5Reader{}, "kanmeizi": &reader.KanmeiziReader{}, "fuman": &reader.FumanReader{}, "weijiaoshou": &reader.WeijiaoshouReader{}, "haimaoba": &reader.HaimaobaReader{}, "ssmh": &reader.SsmhReader{}, "hanmanku": &reader.HanmankuReader{}, "hanmanwo": &reader.HanmanwoReader{}, "laosijixs": &reader.LaosijixsReader{}, }
GuideList 阅读器匹配组
View Source
var ReaderList = map[string]reader.Reader{ "qidian": &reader.QidianReader{}, "zongheng": &reader.ZonghengReader{}, "17k": &reader.SeventeenKReader{}, "xxsy": &reader.XxsyReader{}, "hongxiu": &reader.HongxiuReader{}, "luoqiu": &reader.MLuoqiuReader{}, "booktxt": &reader.BooktxtReader{}, "booktxtnet": &reader.BooktxtnetReader{}, "paoshu8": &reader.Paoshu8Reader{}, "qkshu6": &reader.Qkshu6Reader{}, "shuge": &reader.ShugeReader{}, "qu": &reader.QuReader{}, "jx": &reader.JxReader{}, "uxiaoshuo": &reader.UxiaoshuoReader{}, "soe8": &reader.Soe8Reader{}, "bxks": &reader.BxksReader{}, "bxwx": &reader.BxwxReader{}, "xin18": &reader.Xin18Reader{}, "biqugeinfo": &reader.BiqugeinfoReader{}, "mcmssc": &reader.McmsscReader{}, "xs280": &reader.Xs280Reader{}, "xbiquge": &reader.XbiqugeReader{}, "biquyun": &reader.BiquyunReader{}, "book": &reader.BookReader{}, "article": &reader.ArticleReader{}, "rss": &reader.RssReader{}, "blog": &reader.BlogReader{}, "learnku": &reader.LearnkuReader{}, "github": &reader.GithubReader{}, "r2hm": &reader.R2hmReader{}, "manwuyu": &reader.ManwuyuReader{}, "manhwa": &reader.ManhwaReader{}, "aimeizi5": &reader.Aimeizi5Reader{}, "kanmeizi": &reader.KanmeiziReader{}, "fuman": &reader.FumanReader{}, "weijiaoshou": &reader.WeijiaoshouReader{}, "haimaoba": &reader.HaimaobaReader{}, "ssmh": &reader.SsmhReader{}, "hanmanku": &reader.HanmankuReader{}, "hanmanwo": &reader.HanmanwoReader{}, "laosijixs": &reader.LaosijixsReader{}, }
ReaderList 阅读器匹配组
Functions ¶
Types ¶
type Card ¶
type Card struct { Title string `json:"title"` // 标题 WxTo string `json:"wxto"` // 小程序跳转到目标页 Intro string `json:"intro"` //介绍 Type string `json:"type"` // card展示形式 media card text image images link Cover string `json:"cover"` // 封面图片 Images []string `json:"images"` // 图片组效果时图片列表 }
Card 使用卡片代替链接
type Catalog ¶
type Catalog struct { Title string `json:"title"` Cards []Card //`json:"links"` SourceURL string `json:"source_url"` // 数据抓取时,统一声明数据来源 Hash string `json:"hash"` // 当前目录 Hash Previous Link `json:"previous"` // 如果有上一页 Next Link `json:"next"` // 如果有下一页 }
* * base.go 放一些基础数据结构类,用于制定内外数据结构
Catalog 第三方资源目录(用户可任意订阅此目录)
type DemoItem ¶
type DemoItem struct { Title string `json:"title"` URL string `json:"url"` Category string `json:"category"` }
DemoItem 示例详细
Click to show internal directories.
Click to hide internal directories.