engine

package
v0.0.0-...-27fe79e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Worker

func Worker(r types.Request) (types.ParseResult, error)

Types

type ConcurrentEngine

type ConcurrentEngine struct {
	WorkCount        int
	Scheduler        scheduler.Scheduler
	ItemChan         chan types.Item
	RequestProcessor Processor
}

func (*ConcurrentEngine) CreateWork

func (e *ConcurrentEngine) CreateWork(in chan types.Request, out chan types.ParseResult, scheduler scheduler.Scheduler)

func (*ConcurrentEngine) Run

func (e *ConcurrentEngine) Run(requests ...types.Request)

type Processor

type Processor func(request types.Request) (types.ParseResult, error)

type SimpleEngine

type SimpleEngine struct {
}

func (*SimpleEngine) Run

func (e *SimpleEngine) Run(requests ...types.Request)

Jump to

Keyboard shortcuts

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