fetch

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnreachableFeed = errors.New("fetch: unreachable feed")
)
View Source
var (
	ErrUnreachablePage = errors.New("fetch: unreachable page")
)

Functions

This section is empty.

Types

type FeedFetcher

type FeedFetcher interface {
	FetchFeed(url, etag, lastModified string) (FetchFeedResponse, error)
}

type FetchFeedResponse

type FetchFeedResponse struct {
	Feed         string
	ETag         string
	LastModified string
}

type PageFetcher

type PageFetcher interface {
	FetchPage(url string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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