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
}
func NewDownloader ¶
func NewDownloader(rootDir string) *Downloader
func (*Downloader) Get ¶
func (d *Downloader) Get(hash string, download bool) ([]byte, error)
Get checks if an IPFS image exists and returns it from cache otherwise downloads it from INFURA's ipfs gateway
func (*Downloader) Stop ¶
func (d *Downloader) Stop()
Click to show internal directories.
Click to hide internal directories.