infura

package
v0.0.0-...-b1dc30f Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const IPFSLinkFormat = "https://gateway.ipfs.io/ipfs/%s"

Variables

This section is empty.

Functions

This section is empty.

Types

type Infura

type Infura struct {
	// contains filtered or unexported fields
}

func NewDefaultInfura

func NewDefaultInfura(url string, projectId, projectSecret string) *Infura

func NewInfura

func NewInfura(shell *ipfs.Shell, infuraURL string) *Infura

func (*Infura) AddInfuraImage

func (i *Infura) AddInfuraImage(path string) (string, error)

func (*Infura) AddInfuraJSON

func (i *Infura) AddInfuraJSON(val interface{}) (string, error)

func (*Infura) GetLinkIPFS

func (i *Infura) GetLinkIPFS(cid string) string

Jump to

Keyboard shortcuts

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