mock

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

This section is empty.

Functions

This section is empty.

Types

type FeedFetcher

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

func NewFeedFetcher

func NewFeedFetcher(feeds map[string]string) *FeedFetcher

func (*FeedFetcher) FetchFeed

func (f *FeedFetcher) FetchFeed(url, etag, lastModified string) (fetch.FetchFeedResponse, error)

type PageFetcher

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

func NewPageFetcher

func NewPageFetcher(pages map[string]string) *PageFetcher

func (*PageFetcher) FetchPage

func (f *PageFetcher) FetchPage(url string) (string, error)

Jump to

Keyboard shortcuts

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