crawler

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT, Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine(workerCount uint64) *engine.Engine[string]

Types

type Config

type Config = engine.Config[string]

type Engine

type Engine = engine.Engine[string]

type HandlerFunc added in v0.0.34

type HandlerFunc func(ctx context.Context, url string) ([]*Request, error)

type Request

type Request = engine.Task[string]

func NewRequest

func NewRequest(key string, kind engine.Kind, taskFunc TaskFunc) *Request

func NewUrlKindRequest

func NewUrlKindRequest(url string, kind engine.Kind, handleFunc HandlerFunc) *Request

func NewUrlRequest

func NewUrlRequest(url string, handler HandlerFunc) *Request

type TaskFunc

type TaskFunc = engine.TaskFunc[string]

Jump to

Keyboard shortcuts

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