Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupJob ¶ added in v1.29.0
func NewCleanupJob ¶ added in v1.29.0
func NewCleanupJob(log zerolog.Logger, cacheRepo domain.FeedCacheRepo) *CleanupJob
func (*CleanupJob) Run ¶ added in v1.29.0
func (j *CleanupJob) Run()
type NewznabJob ¶
type NewznabJob struct { Feed *domain.Feed Name string Log zerolog.Logger URL string Client newznab.Client Repo domain.FeedRepo CacheRepo domain.FeedCacheRepo ReleaseSvc release.Service SchedulerSvc scheduler.Service JobID int // contains filtered or unexported fields }
func (*NewznabJob) Run ¶
func (j *NewznabJob) Run()
type RSSJob ¶
type RSSParser ¶
type RSSParser struct {
// contains filtered or unexported fields
}
func NewFeedParser ¶
NewFeedParser wraps the gofeed.Parser using our own http client for full control
func (*RSSParser) ParseURLWithContext ¶
func (*RSSParser) WithHTTPClient ¶ added in v1.46.0
type Service ¶
type Service interface { FindOne(ctx context.Context, params domain.FindOneParams) (*domain.Feed, error) FindByID(ctx context.Context, id int) (*domain.Feed, error) Find(ctx context.Context) ([]domain.Feed, error) GetCacheByID(ctx context.Context, feedId int) ([]domain.FeedCacheItem, error) Store(ctx context.Context, feed *domain.Feed) error Update(ctx context.Context, feed *domain.Feed) error Test(ctx context.Context, feed *domain.Feed) error ToggleEnabled(ctx context.Context, id int, enabled bool) error Delete(ctx context.Context, id int) error DeleteFeedCache(ctx context.Context, id int) error GetLastRunData(ctx context.Context, id int) (string, error) DeleteFeedCacheStale(ctx context.Context) error ForceRun(ctx context.Context, id int) error Start() error }
type TorznabJob ¶
type TorznabJob struct { Feed *domain.Feed Name string Log zerolog.Logger URL string Client torznab.Client Repo domain.FeedRepo CacheRepo domain.FeedCacheRepo ReleaseSvc release.Service SchedulerSvc scheduler.Service JobID int // contains filtered or unexported fields }
func (*TorznabJob) Run ¶
func (j *TorznabJob) Run()
Click to show internal directories.
Click to hide internal directories.