Discover Packages
github.com/wetware/pkg
cap
bitswap
package
Version:
v0.1.0-alpha.1
Opens a new window with list of versions in this module.
Published: Aug 18, 2023
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetBlocks attempts to resolve the block corresponding to the supplied CID.
It relies on ctx to time-out or cancel. The block received by the client
is transparently verified against the supplied key, and blocks.ErrWrongHash
is returned if these do not match.
Exchange is the local peer's BitSwap exchange. It is wrapped by Server
to provide the BitSwap capability over the network.
type Server struct {
Exchange Exchange
}
func (s Server ) Client() capnp.Client
Source Files
¶
Directories
¶
Package test_bitswap is a generated GoMock package.
Package test_bitswap is a generated GoMock package.
Click to show internal directories.
Click to hide internal directories.