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 // contains filtered or unexported fields }
func NewList ¶
func NewList(sources []string) []*WebseedSource
func (*WebseedSource) DownloadSpeed ¶
func (s *WebseedSource) DownloadSpeed() uint
func (*WebseedSource) Downloading ¶
func (s *WebseedSource) Downloading() bool
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.
func (*WebseedSource) ResetSpeed ¶
func (s *WebseedSource) ResetSpeed()
func (*WebseedSource) TickSpeed ¶
func (s *WebseedSource) TickSpeed()
func (*WebseedSource) UpdateSpeed ¶
func (s *WebseedSource) UpdateSpeed(length int)
Click to show internal directories.
Click to hide internal directories.