package
0.14.6
Repository: https://github.com/phoreproject/openbazaar-go.git
Documentation: pkg.go.dev

# Functions

Recursively add a directory to IPFS and return the root hash.
No description provided by the author
Fetch data from IPFS given the hash.
No description provided by the author
No description provided by the author
DeleteCachedIPNSRecord removes the cached record associated with the provided peer.ID.
EncodeCID - Hash with SHA-256 and encode as a multihash.
EncodeMultihash - sha256 encode.
ExtractIDFromPointer Certain pointers, such as moderators, contain a peerID.
This function takes a Cid directory object and walks it returning each linked cid in the graph.
Fetch pointers from the dht.
Fetch pointers from the dht.
GetCachedIPNSRecord retrieves the full IPNSEntry from the provided datastore if present.
GetCachedPubkey retrieves the pubkey using the appropriate key prefix from the provided Datastore.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InstallDatabasePlugins installs the default database plugins used by openbazaar-go.
NewAPIRouter creates a new APIRouter backed by the given URI.
No description provided by the author
entropy is a sequence of bytes that should be deterministic based on the content of the pointer it is hashed and used to fill the remaining 20 bytes of the magic id.
NewPubsubPublisher constructs a new Publisher that publishes arbitrary data through pubsub.
NewPubsubSubscriber constructs a new subscriber for arbitrary subscriptions through pubsub.
PrepareIPFSConfig builds the configuration options for the internal IPFS node.
Publish a signed IPNS record to our Peer ID.
No description provided by the author
PutCachedPubkey persists the pubkey using the appropriate key prefix from the provided datastore.
No description provided by the author
Query returns the closest peers known for peerID.
No description provided by the author
Resolve an IPNS record.
No description provided by the author
No description provided by the author
UnPinDir removes all content from the published root directory to be garbage collected later by IPFS.
UpdateIPFSGlobalProtocolVars is a hack to manage custom protocol strings which do not yet have an API to manage their configuration.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ErrNotStarted is returned if a method is called before the router is started using the Start() method.

# Structs

APIRouter is a routing.IpfsRouting compliant struct backed by an API.
No description provided by the author
A pointer is a custom provider inserted into the DHT which points to a location of a file.
No description provided by the author
PubsubPublisher is a publisher that distributes arbitrary data through pubsub.
PubsubSubscriber subscribes to arbitrary subscriptions through pubsub.

# Interfaces

PubKey wraps IPFS's underlying PubKey dependency.

# Type aliases

No description provided by the author