feeds

package
v0.0.0-...-caa4999 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoFeedFound = fmt.Errorf("no feed found")

Functions

This section is empty.

Types

type FeedWatcher

type FeedWatcher struct {
	Session *discordgo.Session
	Queries *database.Queries
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, db *sql.DB, session *discordgo.Session) *FeedWatcher

func (*FeedWatcher) DiscoverFeed

func (f *FeedWatcher) DiscoverFeed(targetUrl string) (*gofeed.Feed, string, error)

func (*FeedWatcher) RefreshFeed

func (f *FeedWatcher) RefreshFeed(feed database.Feed, isBackfill bool) error

func (*FeedWatcher) Start

func (f *FeedWatcher) Start()

func (*FeedWatcher) Stop

func (f *FeedWatcher) Stop()

Jump to

Keyboard shortcuts

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