Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebseedSource ¶
type WebseedSource struct { URL string Disabled bool Downloader *urldownloader.URLDownloader LastError error DisabledAt time.Time DownloadSpeed metrics.Meter }
WebseedSource is a URL for downloading torrent data from web sources.
func NewList ¶
func NewList(sources []string) []*WebseedSource
NewList returns a new WebseedSource list.
func (*WebseedSource) Downloading ¶
func (s *WebseedSource) Downloading() bool
Downloading returns true if data is being downloaded from this source.
func (*WebseedSource) Remaining ¶
func (s *WebseedSource) Remaining() uint32
Remaining returns the number of pieces that is going to be downloaded by this source. If there is a piece currently downloading, it is not counted.
Click to show internal directories.
Click to hide internal directories.