refresh

package
v0.0.0-...-93fcf36 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Ticker *time.Ticker
	Parser *gofeed.Parser
	// contains filtered or unexported fields
}

Refresh task that will run with a specified periodicity.

func NewTask

func NewTask(db *sqlx.DB, freq time.Duration) *Task

func (*Task) Refresh

func (t *Task) Refresh() ([]resource.Article, error)

Refresh all the feeds. This function can also be called manually.

func (*Task) Run

func (t *Task) Run()

Run blocks indefinetely, and runs the Refresh function in repeated intervals

Jump to

Keyboard shortcuts

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