feed

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedContent

type FeedContent struct {
	Title       string
	Items       []FeedItem
	LastUpdated time.Time
}

type FeedItem

type FeedItem struct {
	GUID        string
	Title       string
	Link        string
	PublishedAt time.Time
	Content     string
}

type Fetcher

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

func NewFetcher

func NewFetcher(store *db.Store) *Fetcher

func (*Fetcher) FetchFeed

func (f *Fetcher) FetchFeed(ctx context.Context, url string) (*FeedContent, error)

type Updater

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

func NewUpdater

func NewUpdater(store *db.Store, interval time.Duration) *Updater

func (*Updater) Start

func (u *Updater) Start(ctx context.Context)

func (*Updater) Stop

func (u *Updater) Stop()

Jump to

Keyboard shortcuts

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