downloader

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: GPL-3.0 Imports: 19 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
}

Downloader is a download request handler.

func New

func New(ctx context.Context, log *zap.Logger, conns pool.Pool) (*Downloader, error)

New creates an instance of Downloader using specified options.

func (*Downloader) DownloadByAddress

func (d *Downloader) DownloadByAddress(c *fasthttp.RequestCtx)

DownloadByAddress handles download requests using simple cid/oid format.

func (*Downloader) DownloadByAttribute

func (d *Downloader) DownloadByAttribute(c *fasthttp.RequestCtx)

DownloadByAttribute handles attribute-based download requests.

Jump to

Keyboard shortcuts

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