ipfsutil

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeGetterForCid

func GetNodeGetterForCid(ipfsApis []IpfsAPI, c cid.Cid) (ng format.NodeGetter, found bool)

GetNodeGetterForCid returns a NodeGetter that is pinning or can access a Cid block from a list.

func IsPinned

func IsPinned(ctx context.Context, ipfsApis []IpfsAPI, c cid.Cid) (bool, error)

IsPinned returns if a cid is pinned in one of the provided go-ipfs nodes.

Types

type IpfsAPI

type IpfsAPI struct {
	Address multiaddr.Multiaddr
	API     iface.CoreAPI
}

IpfsAPI describes an IPFS endpoint.

Jump to

Keyboard shortcuts

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