pget

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter struct {
	Downloader download.Strategy
	Consumer   consumer.Consumer
	Options    Options
}

func (*Getter) DownloadFile

func (g *Getter) DownloadFile(ctx context.Context, url string, dest string) (int64, time.Duration, error)

func (*Getter) DownloadFiles added in v0.4.0

func (g *Getter) DownloadFiles(ctx context.Context, manifest Manifest) (int64, time.Duration, error)

type Manifest added in v0.4.0

type Manifest []ManifestEntry

A Manifest is a slice of ManifestEntry, with a helper method to add entries

func (Manifest) AddEntry added in v0.7.1

func (m Manifest) AddEntry(url string, destination string) Manifest

type ManifestEntry added in v0.4.0

type ManifestEntry struct {
	URL  string
	Dest string
}

type Options added in v0.5.0

type Options struct {
	MaxConcurrentFiles int
}

Directories

Path Synopsis
Package consistent implements consistent hashing for cache nodes.
Package consistent implements consistent hashing for cache nodes.

Jump to

Keyboard shortcuts

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