rss

package
v0.0.0-...-c24a66e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScrapeFeeds

func ScrapeFeeds(db *database.Queries, fetcher RssFetcher) error

Types

type RSSChannel

type RSSChannel struct {
	Title       string    `xml:"title"`
	Link        string    `xml:"link"`
	Description string    `xml:"description"`
	Item        []RSSItem `xml:"item"`
}

type RSSFeed

type RSSFeed struct {
	Channel RSSChannel `xml:"channel"`
}

func FetchFeed

func FetchFeed(ctx context.Context, feedURL string) (*RSSFeed, error)

type RSSItem

type RSSItem struct {
	Title       string `xml:"title"`
	Link        string `xml:"link"`
	Description string `xml:"description"`
	PubDate     string `xml:"pubDate"`
}

type RssFetcher

type RssFetcher func(context.Context, string) (*RSSFeed, error)

Jump to

Keyboard shortcuts

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