worker

package
v0.0.0-...-5254df5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const NUM_WORKERS = 4

Variables

This section is empty.

Functions

func ConvertItems

func ConvertItems(items []parser.Item, feed storage.Feed) []storage.Item

func GetBody

func GetBody(url string) (string, error)

func SetVersion

func SetVersion(num string)

Types

type Client

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

type DiscoverResult

type DiscoverResult struct {
	Feed     *parser.Feed
	FeedLink string
	Sources  []FeedSource
}

func DiscoverFeed

func DiscoverFeed(candidateUrl string) (*DiscoverResult, error)

type FeedSource

type FeedSource struct {
	Title string `json:"title"`
	Url   string `json:"url"`
}

type Worker

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

func NewWorker

func NewWorker(db *storage.Storage) *Worker

func (*Worker) FeedsPending

func (w *Worker) FeedsPending() int32

func (*Worker) FindFavicons

func (w *Worker) FindFavicons()

func (*Worker) FindFeedFavicon

func (w *Worker) FindFeedFavicon(feed storage.Feed)

func (*Worker) RefreshFeeds

func (w *Worker) RefreshFeeds()

func (*Worker) SetRefreshRate

func (w *Worker) SetRefreshRate(minute int64)

func (*Worker) StartFeedCleaner

func (w *Worker) StartFeedCleaner()

Jump to

Keyboard shortcuts

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