crawler

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

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

Types

type Config

type Config = engine.Config[string]

type Engine

type Engine = engine.Engine[string]

type HandleFunc

type HandleFunc 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 HandleFunc) *Request

func NewUrlRequest

func NewUrlRequest(url string, handleFunc HandleFunc) *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