rss

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFeedError

func IsFeedError(err error) bool

Types

type FeedArticle

type FeedArticle struct {
	Title         string
	URL           string
	PublishedDate *time.Time
	Categories    []string
}

type FeedParseError

type FeedParseError struct {
	Message string
}

func (FeedParseError) Error

func (e FeedParseError) Error() string

type Fetcher

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

Fetcher fetches and parses RSS/Atom feeds.

func NewFetcher

func NewFetcher(client *http.Client) *Fetcher

NewFetcher creates a Fetcher with the given HTTP client.

func (*Fetcher) DiscoverFeedURL

func (f *Fetcher) DiscoverFeedURL(ctx context.Context, blogURL string) (string, error)

func (*Fetcher) ParseFeed

func (f *Fetcher) ParseFeed(ctx context.Context, feedURL string) ([]FeedArticle, error)

Jump to

Keyboard shortcuts

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