parser

package
v0.0.0-...-b6a3ff4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Sources []*config.ParserExecutor
}

type Executor

type Executor interface {
	Execute(ctx context.Context, linkchan chan<- *linkResp) error
	Name() string
}

type Handler

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

func Init

func Init(cfg Config) (*Handler, error)

func (*Handler) Parse

func (h *Handler) Parse(ctx context.Context, ch chan<- *Result)

type Result

type Result struct {
	Source     string
	SourceDone bool
	Proxy      proxy.Proxy
	Err        error
}

Jump to

Keyboard shortcuts

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