feedscheduler

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedScheduler

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

FeedScheduler implements the mechanism for periodically fetching all enabled Feeds and scheduling a set of jobs for each Feed.

func New

func New(conf config.FeedScheduler, db *gorm.DB, fk *faktory.Client) *FeedScheduler

New creates a new FeedScheduler.

func (*FeedScheduler) Run

func (fs *FeedScheduler) Run(ctx context.Context) (err error)

Run starts the feed scheduling process.

This function should ideally run forever, unless an error is encountered or the context is done.

Jump to

Keyboard shortcuts

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