processor

package
v0.0.0-...-5365f31 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedProcessor

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

FeedProcessor handles the processing of feed contents.

func NewFeedProcessor

func NewFeedProcessor(userID int64, store *storage.Storage, feed *model.Feed) *FeedProcessor

NewFeedProcessor returns a new FeedProcessor.

func (*FeedProcessor) Process

func (f *FeedProcessor) Process()

Process applies rewrite and scraper rules.

func (*FeedProcessor) WithCrawler

func (f *FeedProcessor) WithCrawler(value bool)

WithCrawler enables the crawler.

func (*FeedProcessor) WithRewriteRules

func (f *FeedProcessor) WithRewriteRules(rules string)

WithRewriteRules adds rewrite rules to the processing.

func (*FeedProcessor) WithScraperRules

func (f *FeedProcessor) WithScraperRules(rules string)

WithScraperRules adds scraper rules to the processing.

Jump to

Keyboard shortcuts

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