engine

package
v0.0.0-...-0216257 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(seeds ...Request)

引擎 控制整个程序的流程

Types

type ParseResult

type ParseResult struct {
	Requests []Request     //存放一个或多个Request供程序使用
	Items    []interface{} //存放多个参数 基本打印就靠他
}

信息大的集合 注意结构体中的类型都为数组 这是一个很关键的设置

func Nilparser

func Nilparser([]byte) ParseResult

暂时设置为空让程序跑起来 开始收集用户信息时 它会被替换掉

type Request

type Request struct {
	Url        string                   //存放地址
	ParserFunc func([]byte) ParseResult // 存放函数类型,参数[]byte就是下载器根据这个URL返回的内容
}

信息存放位置 每一个信息具有单独不连续的内存

Jump to

Keyboard shortcuts

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