Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageProcessor ¶
type PageProcessor interface { //Process 处理数据 Process(page *model.Page) *model.ResultItems //GetSite 获取配置 GetSite() *model.Site }
PageProcessor 处理下载的数据
type SimplePageProcessor ¶
type SimplePageProcessor struct { }
SimplePageProcessor 实现接口PageProcessor
func (SimplePageProcessor) GetSite ¶
func (p SimplePageProcessor) GetSite() *model.Site
func (SimplePageProcessor) Process ¶
func (p SimplePageProcessor) Process(page *model.Page) *model.ResultItems
Click to show internal directories.
Click to hide internal directories.