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.
Click to show internal directories.
Click to hide internal directories.