engine

package
v0.0.0-...-8c07c70 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParseFunc

func GetParseFunc(parseMethod model.ParseType) func(bytes []byte) model.ParseResult

func SaveItem

func SaveItem(item model.Item, ctx context.Context, client *elastic.Client)

Types

type SimpleEngine

type SimpleEngine struct {
	WorkCount        int
	ItemCollectCount int
	ItemChain        chan model.Item
}

func (*SimpleEngine) Run

func (e *SimpleEngine) Run(seeds ...model.Request)

Jump to

Keyboard shortcuts

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