ipfsverse

package
v0.0.0-...-457732c Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 17 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseTestIpfs

func BaseTestIpfs(t *testing.T, hGen pv.HostGenerator)

go test -test.v=true .

func NewCidGetter

func NewCidGetter() (*cidGetter, error)

Types

type Ipfs

type Ipfs interface {
	Close()
	AddrInfo() peer.AddrInfo
	AddReader(io.Reader, ...time.Duration) (string, error)
	Add([]byte, ...time.Duration) (string, error)
	GetReader(string, ...time.Duration) (io.Reader, error)
	Get(string, ...time.Duration) ([]byte, error)
	Has(string, ...time.Duration) (bool, error)
}

func NewIpfsStore

func NewIpfsStore(hGen pv.HostGenerator, dirPath string, save bool, bootstraps ...peer.AddrInfo) (Ipfs, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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