View Source MyspaceIPFS.Api.Network.Bitswap (Myspace IPFS v0.0.1)

MyspaceIPFS.Api.Bitswap is where the bootstrap commands of the IPFS API reside.

Link to this section Summary

Functions

Get the current bitswap ledger for a given peer.

Reprovide blocks to the network.

Get the current bitswap stats.

Get the current bitswap wantlist.

Link to this section Functions

@spec ledger(binary()) ::
  {:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
   any()}

Get the current bitswap ledger for a given peer.

@spec reprovide() ::
  {:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
   any()}

Reprovide blocks to the network.

Link to this function

stat(verbose \\ false, human \\ false)

View Source
@spec stat(boolean(), boolean()) ::
  {:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
   any()}

Get the current bitswap stats.

@spec wantlist(any()) ::
  {:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
   any()}

Get the current bitswap wantlist.