dlmanager

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	URL        string
	Path       string
	Name       string
	Redownload bool
}

type Manager

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

func NewManager

func NewManager(concurrentDLs int64) *Manager

func (*Manager) Add

func (p *Manager) Add(j Job)

func (*Manager) Close

func (p *Manager) Close()

func (*Manager) Errors

func (p *Manager) Errors() (bool, []Job)

func (*Manager) QueryStats

func (p *Manager) QueryStats() (queued, completed int)

func (*Manager) Start

func (p *Manager) Start(queueLength int) chan Job

func (*Manager) Wait

func (p *Manager) Wait()

Jump to

Keyboard shortcuts

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