rss

package
v1.0.1-0...-b16c9cc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DafaultReader = New(&http.Client{})
View Source
var ErrNotModified = errors.New("not modified")

Functions

func New

func New(client *http.Client) *reader

Types

type Feed

type Feed struct {
	*gofeed.Feed

	ETag         string
	LastModified time.Time
}

func ReadFeed

func ReadFeed(url string, etag string, lastModified time.Time) (*Feed, error)

func ReadFeedWithContext

func ReadFeedWithContext(url string, etag string, lastModified time.Time, ctx context.Context) (*Feed, error)

Jump to

Keyboard shortcuts

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