rss

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 7 Imported by: 0

README

Go-RSS

This package is an RSS feed XML parser.

Installation

go get github.com/allenakinkunle/go-rss

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParsingOPMLFile = errors.New("error parsing invalid OPML file")

Functions

func NewMockPodcastRSSParser

func NewMockPodcastRSSParser() mockPodcastRSSParser

Types

type IPodcastRSSParser

type IPodcastRSSParser interface {
	ParseOPML(opmlContent []byte) ([]outline, error)
	Client(xmlUrl string) (*http.Response, error)
	ParsePodcastRSSFeed(rd io.Reader) (*gofeed.Feed, error)
}

type PodcastRSSParser

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

func NewPodcastRSSParser

func NewPodcastRSSParser(timeout time.Duration, userAgent string) *PodcastRSSParser

func (*PodcastRSSParser) Client

func (p *PodcastRSSParser) Client(xmlUrl string) (*http.Response, error)

func (*PodcastRSSParser) ParseOPML

func (p *PodcastRSSParser) ParseOPML(opmlContent []byte) ([]outline, error)

func (*PodcastRSSParser) ParsePodcastRSSFeed

func (p *PodcastRSSParser) ParsePodcastRSSFeed(rd io.Reader) (*gofeed.Feed, error)

Jump to

Keyboard shortcuts

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