urldownloader

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 10 Imported by: 0

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

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

func (d *URLDownloader) String() string

func (*URLDownloader) UpdateEnd

func (d *URLDownloader) UpdateEnd(value uint32)

Jump to

Keyboard shortcuts

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