webseedsource

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 3 Imported by: 0

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
}

func NewList

func NewList(sources []string) []*WebseedSource

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.

Jump to

Keyboard shortcuts

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