ipfs

package
v0.0.0-...-59ccd6a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ipfs

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

func NewIpfs

func NewIpfs(url string) *Ipfs

NewIpfs generates an ipfs node with ipfs url.

func (*Ipfs) Add

func (i *Ipfs) Add(data []byte) (string, error)

Add method adds a data and returns a CID.

func (*Ipfs) Get

func (i *Ipfs) Get(cid string) ([]byte, error)

Get method gets a data and returns a bytes of Deal.

Jump to

Keyboard shortcuts

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