gazellepw

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 *http.Client
}

func (*Site) DownloadTorrent

func (gpwsite *Site) DownloadTorrent(torrentUrl string) ([]byte, string, error)

func (*Site) DownloadTorrentById

func (gpwsite *Site) DownloadTorrentById(id string) ([]byte, string, error)

func (*Site) GetAllTorrents

func (gpwsite *Site) GetAllTorrents(sort string, desc bool, pageMarker string, baseUrl string) (
	torrents []site.Torrent, nextPageMarker string, err error)

func (*Site) GetLatestTorrents

func (gpwsite *Site) GetLatestTorrents(full bool) ([]site.Torrent, error)

func (*Site) GetName

func (gpwsite *Site) GetName() string

func (*Site) GetSiteConfig

func (gpwsite *Site) GetSiteConfig() *config.SiteConfigStruct

func (*Site) GetStatus

func (gpwsite *Site) GetStatus() (*site.Status, error)

func (*Site) PurgeCache

func (gpwsite *Site) PurgeCache()

func (*Site) SearchTorrents

func (gpwsite *Site) SearchTorrents(keyword string, baseUrl string) ([]site.Torrent, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL