download

package
v0.3.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(rawurl string, ipfs *shell.Shell, metadata *metadata.Cache, streamData io.WriteCloser) (ipfsPath string, err error)

Master download router. Looks at the url and determins which service needs to hand the url. streamData is used to allow for playing the audio without waiting for the DL to finish. If you pass a writer the data will be pushed into that reader at the same time it's written to disk. I recommend a buffered reader, as I'm using TeeReader which works best with buffers

Types

This section is empty.

Jump to

Keyboard shortcuts

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