fetch

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicFetcher

type DynamicFetcher struct {
	UserAgent string
}

The DynamicFetcher renders js

func (*DynamicFetcher) Fetch

func (d *DynamicFetcher) Fetch(url string) (string, error)

type Fetcher

type Fetcher interface {
	Fetch(url string) (string, error)
}

A Fetcher allows to fetch the content of a web page

type StaticFetcher

type StaticFetcher struct {
	UserAgent string
}

The StaticFetcher fetches static page content

func (*StaticFetcher) Fetch

func (s *StaticFetcher) Fetch(url string) (string, error)

Jump to

Keyboard shortcuts

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