Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewznabJob ¶
type NewznabJob struct { Feed *domain.Feed Name string IndexerIdentifier 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 NewNewznabJob ¶
func (*NewznabJob) Run ¶
func (j *NewznabJob) Run()
type RSSJob ¶
type RSSJob struct { Feed *domain.Feed Name string IndexerIdentifier string Log zerolog.Logger URL string Repo domain.FeedRepo CacheRepo domain.FeedCacheRepo ReleaseSvc release.Service Timeout time.Duration JobID int // contains filtered or unexported fields }
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
type Service ¶
type Service interface { FindByID(ctx context.Context, id int) (*domain.Feed, error) FindByIndexerIdentifier(ctx context.Context, indexer string) (*domain.Feed, error) Find(ctx context.Context) ([]domain.Feed, error) GetCacheByID(ctx context.Context, bucket string) ([]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 GetLastRunData(ctx context.Context, id int) (string, error) Start() error }
type TorznabJob ¶
type TorznabJob struct { Feed *domain.Feed Name string IndexerIdentifier 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 NewTorznabJob ¶
func (*TorznabJob) Run ¶
func (j *TorznabJob) Run()
Click to show internal directories.
Click to hide internal directories.