web

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebContentFetcher added in v0.3.10

func NewWebContentFetcher(browser browser.Browsable, contentCache ContentCacher, connectivityTester cache.ConnectivityTester) source.ContentFetcher

Types

type ContentCacher

type ContentCacher interface {
	CachePage(browsable browser.Browsable) error
}

type ContentFetcher

type ContentFetcher struct {
	Browser            browser.Browsable
	Cacher             ContentCacher
	ConnectivityTester cache.ConnectivityTester
}

ContentFetcher is a content fetcher that deals with the state of sources

func (*ContentFetcher) Cleanup

func (w *ContentFetcher) Cleanup()

func (*ContentFetcher) Fetch

func (w *ContentFetcher) Fetch(target *source.SearchTarget) error

Gets the content from which we'll extract the search results

func (*ContentFetcher) FetchUrl

func (w *ContentFetcher) FetchUrl(url string) error

func (*ContentFetcher) Post

func (w *ContentFetcher) Post(url string, data url.Values, log bool) error

Jump to

Keyboard shortcuts

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