pipeline

package
v0.0.0-...-3a892f2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

数据收集

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshOutput

func RefreshOutput(outType string)

刷新输出方式的状态

Types

type Pipeline

type Pipeline interface {
	Run()                            //启动(阻塞)
	Start()                          //启动
	Stop()                           //停止
	CollectData(data.DataCell) error //收集数据单元
	CollectFile(data.FileCell) error //收集文件
	Logger() logs.Logs
	SetLogger(logs.Logs)
}

数据收集/输出管道

func New

func New(sp *spider.Spider) Pipeline

Directories

Path Synopsis
结果收集与输出
结果收集与输出

Jump to

Keyboard shortcuts

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