processors

package
v0.0.0-...-ba9c0dd Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
}

A simple processor that just outputs basic information to the standard output

func (Output) Process

func (o Output) Process(url, content, title string, urls []string, err error)

Process a fetched resource with its content, title, its children URLs and an optional error

type Saver

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

A saver processor handles web pages by saving their content to the disk after getting rid of HTML tags, multiple whitespaces and so on.

func NewSaver

func NewSaver(base string) Saver

Create a new saver processor.

func (Saver) Process

func (s Saver) Process(url, content, title string, urls []string, previousErr error)

Process a fetched page with its content, title, its children URLs and an optional error

Jump to

Keyboard shortcuts

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