download

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessDownloadTask added in v1.2.2

func ProcessDownloadTask(config TaskConfig) error

Types

type Downloader

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

func NewTask

func NewTask(output, url, filename string) (*Downloader, error)

func (*Downloader) Start

func (d *Downloader) Start(concurrency int) error

type TaskConfig added in v1.2.2

type TaskConfig struct {
	URL       string
	OutputDir string
	Filename  string
	Workers   int
}

Jump to

Keyboard shortcuts

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