ipfs

package
v0.179.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MPL-2.0 Imports: 13 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
}

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()

Jump to

Keyboard shortcuts

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