processor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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