downloader

package
v0.2.119 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 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 Downloader

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

func NewDownloader

func NewDownloader(url string, fileName string, path string, taskNum int) *Downloader

func (*Downloader) Download

func (d *Downloader) Download() error

func (*Downloader) GetFileSize

func (d *Downloader) GetFileSize() (uint64, error)

type FilePart

type FilePart struct {
	Index int
	Start uint64
	End   uint64
	Data  []byte
}

Jump to

Keyboard shortcuts

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