job

package
v0.0.0-...-3273997 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeedParser = iota
)

Variables

This section is empty.

Functions

func NewParserFeedJob

func NewParserFeedJob(logger *logger.Logger,
	articleRepository *storage.ArticleRepository,
	resourceRepository *storage.ResourceRepository,
	tracerProvider traces.ShutdownTracerProvider,
	manager *notifier.SubscriptionManager[*model.FeedArticle],
) quartz.Job

Types

type Daemon

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

func NewDaemon

func NewDaemon(logger *logger.Logger, config *DaemonConfig, jobs []quartz.Job) *Daemon

func (*Daemon) Start

func (d *Daemon) Start(ctx context.Context) error

type DaemonConfig

type DaemonConfig struct {
	Cron string `envconfig:"CRON" default:"1/60 * * * * *"`
}

type ParserFeedJob

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

func (*ParserFeedJob) Description

func (p *ParserFeedJob) Description() string

func (*ParserFeedJob) Execute

func (p *ParserFeedJob) Execute(ctx context.Context) error

func (*ParserFeedJob) Key

func (p *ParserFeedJob) Key() int

Jump to

Keyboard shortcuts

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