pipeline

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

func NewPipeline

func NewPipeline(exchangename string, storer *storage.BetterInMemoryStorage) *Pipeline

func (*Pipeline) Deal

func (pipe *Pipeline) Deal(tasktype uint, rawb []byte, task *models.CrawlTask) (interface{}, error)

func (*Pipeline) Error

func (pipe *Pipeline) Error(r *colly.Response, taskq *scheduler.TaskQueue)

func (*Pipeline) Hook

func (pipe *Pipeline) Hook(c *colly.Collector, taskq *scheduler.TaskQueue)

func (*Pipeline) Response

func (pipe *Pipeline) Response(r *colly.Response, taskq *scheduler.TaskQueue)

func (*Pipeline) Send

func (pipe *Pipeline) Send(tid string, typeid uint, data interface{}, priority uint8, taskq *scheduler.TaskQueue)

Jump to

Keyboard shortcuts

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