Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader struct to store currently being downloaded files and othe things.
func GetDefaultDownloader ¶
func GetDefaultDownloader() *Downloader
GetDefaultDownloader returns default downloader
func New ¶
func New(log *logger.Logger, ipfsGateway string) *Downloader
New is a downloader constructor
func (*Downloader) DownloadAndStore ¶
func (d *Downloader) DownloadAndStore(hash hashing.HashValue, uri string, cache registry.BlobCache, completedChanOpt ...chan bool) error
DownloadAndStore downloads and stores data. Accepted URIs are: http://<url of the contents> (e.g. http://some.place.lt/some/contents.txt) https://<url of the contents> (e.g. https://some.place.lt/some/contents.txt) ipfs://<cid of the contents> (e.g. ipfs://QmeyMc1i9KLqqyqYCksDZiwntxwuiz5Z1hbLBrHvAXyjMZ)
Click to show internal directories.
Click to hide internal directories.