downloader

package
v0.0.0-...-a6066fa Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(resourceUrl string, saveDir string, workers int, resume bool) *Downloader

func (*Downloader) Run

func (d *Downloader) Run(interruptCh chan bool, dataCh chan Part, errCh chan error, quit chan os.Signal)

type Part

type Part struct {
	Index      int
	Start      int64
	End        int64
	ReadLength int64
	Filename   string
}

Jump to

Keyboard shortcuts

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