Documentation ¶
Index ¶
- func NewSite(name string, siteConfig *config.SiteConfigStruct, config *config.ConfigStruct) (site.Site, error)
- type Site
- func (dzsite *Site) DownloadTorrent(torrentUrl string) (content []byte, filename string, id string, err error)
- func (dzsite *Site) DownloadTorrentById(id string) ([]byte, string, error)
- func (dzsite *Site) GetAllTorrents(sort string, desc bool, pageMarker string, baseUrl string) (torrents []site.Torrent, nextPageMarker string, err error)
- func (dzsite *Site) GetDefaultHttpHeaders() [][]string
- func (dzsite *Site) GetLatestTorrents(full bool) ([]site.Torrent, error)
- func (dzsite *Site) GetName() string
- func (dzsite *Site) GetSiteConfig() *config.SiteConfigStruct
- func (dzsite *Site) GetStatus() (*site.Status, error)
- func (dzsite *Site) PurgeCache()
- func (dzsite *Site) SearchTorrents(keyword string, baseUrl string) ([]site.Torrent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSite ¶
func NewSite(name string, siteConfig *config.SiteConfigStruct, config *config.ConfigStruct) (site.Site, error)
Types ¶
type Site ¶
type Site struct { Name string Location *time.Location SiteConfig *config.SiteConfigStruct Config *config.ConfigStruct HttpClient *azuretls.Session HttpHeaders [][]string }
func (*Site) DownloadTorrent ¶
func (*Site) DownloadTorrentById ¶
func (*Site) GetAllTorrents ¶
func (*Site) GetDefaultHttpHeaders ¶ added in v0.1.9
func (*Site) GetLatestTorrents ¶
func (*Site) GetSiteConfig ¶
func (dzsite *Site) GetSiteConfig() *config.SiteConfigStruct
func (*Site) PurgeCache ¶
func (dzsite *Site) PurgeCache()
Click to show internal directories.
Click to hide internal directories.