feeder

package
v0.0.0-...-8bcb013 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFeedsToRefresh

func GetFeedsToRefresh(ctx context.Context, exec boil.ContextExecutor) ([]*core.RSSFeed, error)

func LockFeed

func LockFeed(ctx context.Context, exec boil.ContextExecutor, feedID string) (*core.RSSFeed, error)

func SaveFeed

func SaveFeed(ctx context.Context, exec boil.ContextExecutor, feed *core.RSSFeed, rssFeed *reader.Feed, cleaner cleaner) error

func SaveFeedItem

func SaveFeedItem(ctx context.Context, exec boil.ContextExecutor, feedID string, rssFeedItem *reader.Item, cleaner cleaner) (bool, error)

func SaveFetchFailure

func SaveFetchFailure(ctx context.Context, exec boil.ContextExecutor, feed *core.RSSFeed, fetchErr error) error

Types

type Feeder

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

func NewFeeder

func NewFeeder(db *sqlx.DB, fetcher fetcher, cleaner cleaner) *Feeder

func (*Feeder) RunPoller

func (f *Feeder) RunPoller(ctx context.Context)

Jump to

Keyboard shortcuts

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