Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PieceResult ¶
type PieceResult struct { Downloader *URLDownloader Buffer bufferpool.Buffer Index uint32 Error error Done bool }
type URLDownloader ¶
type URLDownloader struct { URL string Begin, End uint32 // contains filtered or unexported fields }
func New ¶
func New(source string, begin, end uint32) *URLDownloader
func (*URLDownloader) Close ¶
func (d *URLDownloader) Close()
func (*URLDownloader) ReadCurrent ¶ added in v0.8.0
func (d *URLDownloader) ReadCurrent() uint32
func (*URLDownloader) Run ¶
func (d *URLDownloader) Run(client *http.Client, pieces []piece.Piece, multifile bool, resultC chan interface{}, pool *bufferpool.Pool, readTimeout time.Duration)
func (*URLDownloader) String ¶ added in v0.8.0
func (d *URLDownloader) String() string
func (*URLDownloader) UpdateEnd ¶ added in v0.8.0
func (d *URLDownloader) UpdateEnd(value uint32)
Click to show internal directories.
Click to hide internal directories.