Documentation
¶
Index ¶
- func FetchAndDownloadFreeRSS[T models.ResType](ctx context.Context, siteName string, m PTSiteInter[T], ...) error
- func ProcessTorrentsWithDBUpdate(ctx context.Context, qbitClient *qbit.QbitClient, ...) error
- type HdskyImpl
- func (h *HdskyImpl) CanbeFinished(detail models.PHPTorrentInfo) bool
- func (h *HdskyImpl) Context() context.Context
- func (h *HdskyImpl) DownloadTorrent(url, title, downloadDir string) (string, error)
- func (h *HdskyImpl) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[models.PHPTorrentInfo], error)
- func (h *HdskyImpl) IsEnabled() bool
- func (h *HdskyImpl) MaxRetries() int
- func (h *HdskyImpl) RetryDelay() time.Duration
- func (h *HdskyImpl) SendTorrentToQbit(ctx context.Context, rssCfg config.RSSConfig) error
- type MteamImpl
- func (m *MteamImpl) CanbeFinished(detail models.MTTorrentDetail) bool
- func (m *MteamImpl) Context() context.Context
- func (m *MteamImpl) DownloadTorrent(url, title, downloadDir string) (string, error)
- func (m *MteamImpl) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[models.MTTorrentDetail], error)
- func (m *MteamImpl) IsEnabled() bool
- func (m *MteamImpl) IsFree(detail models.MTTorrentDetail) bool
- func (m *MteamImpl) MaxRetries() int
- func (m *MteamImpl) RetryDelay() time.Duration
- func (m *MteamImpl) SendTorrentToQbit(ctx context.Context, rssCfg config.RSSConfig) error
- type PTSiteInter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAndDownloadFreeRSS ¶
Types ¶
type HdskyImpl ¶
type HdskyImpl struct {
Collector *colly.Collector
SiteConf *site.SiteMapConfig
// contains filtered or unexported fields
}
func NewHdskyImpl ¶
func (*HdskyImpl) CanbeFinished ¶
func (h *HdskyImpl) CanbeFinished(detail models.PHPTorrentInfo) bool
func (*HdskyImpl) DownloadTorrent ¶
func (*HdskyImpl) GetTorrentDetails ¶
func (h *HdskyImpl) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[models.PHPTorrentInfo], error)
func (*HdskyImpl) MaxRetries ¶
func (*HdskyImpl) RetryDelay ¶
type MteamImpl ¶
type MteamImpl struct {
// contains filtered or unexported fields
}
func NewMteamImpl ¶
func (*MteamImpl) CanbeFinished ¶
func (m *MteamImpl) CanbeFinished(detail models.MTTorrentDetail) bool
func (*MteamImpl) DownloadTorrent ¶
func (*MteamImpl) GetTorrentDetails ¶
func (m *MteamImpl) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[models.MTTorrentDetail], error)
func (*MteamImpl) MaxRetries ¶
func (*MteamImpl) RetryDelay ¶
type PTSiteInter ¶
type PTSiteInter[T models.ResType] interface { GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[T], error) IsEnabled() bool DownloadTorrent(url, title, downloadDir string) (string, error) MaxRetries() int RetryDelay() time.Duration SendTorrentToQbit(ctx context.Context, rssCfg config.RSSConfig) error Context() context.Context }
Click to show internal directories.
Click to hide internal directories.