# 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.
FindPointers fetches pointers from the dht.
FindPointersAsync fetches 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
IdentityFromKey returns IPFS peer identity based on private key.
IdentityKeyFromSeed generates an OpenBazaar seed IPFS key pair.
InstallDatabasePlugins installs the default database plugins used by marketplace-go.
NewAPIRouter creates a new APIRouter backed by the given URI.
No description provided by the author
NewPointer creates a new pointer.
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
MAGIC is a constant combined with a hashed key when creating a magic ID.
MESSAGE and other constants set integer values for each pointer purpose.
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
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
Purpose type is used to enumerate and distinguish the different purposes of pointers.