Documentation ¶
Index ¶
- func FetchAndDownloadFreeRSS[T models.ResType](ctx context.Context, siteName models.SiteGroup, m PTSiteInter[T], ...) error
- func ProcessTorrentsWithDBUpdate(ctx context.Context, qbitClient *qbit.QbitClient, ...) error
- type CmctImpl
- func (h *CmctImpl) CanbeFinished(detail models.PHPTorrentInfo) bool
- func (h *CmctImpl) Context() context.Context
- func (h *CmctImpl) DownloadTorrent(url, title, downloadDir string) (string, error)
- func (h *CmctImpl) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[models.PHPTorrentInfo], error)
- func (h *CmctImpl) IsEnabled() bool
- func (h *CmctImpl) MaxRetries() int
- func (h *CmctImpl) RetryDelay() time.Duration
- func (h *CmctImpl) SendTorrentToQbit(ctx context.Context, rssCfg config.RSSConfig) 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 CmctImpl ¶ added in v0.0.3
type CmctImpl struct { Collector *colly.Collector SiteConf *site.SiteMapConfig // contains filtered or unexported fields }
func NewCmctImpl ¶ added in v0.0.3
func (*CmctImpl) CanbeFinished ¶ added in v0.0.3
func (h *CmctImpl) CanbeFinished(detail models.PHPTorrentInfo) bool
func (*CmctImpl) DownloadTorrent ¶ added in v0.0.3
func (*CmctImpl) GetTorrentDetails ¶ added in v0.0.3
func (h *CmctImpl) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[models.PHPTorrentInfo], error)
func (*CmctImpl) MaxRetries ¶ added in v0.0.3
func (*CmctImpl) RetryDelay ¶ added in v0.0.3
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.