Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectInstances ¶ added in v0.2.1
func ConnectInstances(instances []Instance)
ConnectInstances connects the given instances to each other Deprecated: use github.com/ipfs/go-libipfs/bitswap/testinstance.ConnectInstances instead
Types ¶
type Instance ¶
Instance is a test instance of bitswap + dependencies for integration testing Deprecated: use github.com/ipfs/go-libipfs/bitswap/testinstance.Instance instead
func NewInstance ¶
func NewInstance(ctx context.Context, net tn.Network, p tnet.Identity, netOptions []libipfsnet.NetOpt, bsOptions []libipfsbs.Option) Instance
NewInstance creates a test bitswap instance.
NB: It's easy make mistakes by providing the same peer ID to two different instances. To safeguard, use the InstanceGenerator to generate instances. It's just a much better idea. Deprecated: use github.com/ipfs/go-libipfs/bitswap/testinstance.NewInstance instead
type InstanceGenerator ¶
type InstanceGenerator = libipfs.InstanceGenerator
InstanceGenerator generates new test instances of bitswap+dependencies Deprecated: use github.com/ipfs/go-libipfs/bitswap/testinstance.InstanceGenerator instead
func NewTestInstanceGenerator ¶
func NewTestInstanceGenerator(net tn.Network, netOptions []libipfsnet.NetOpt, bsOptions []libipfsbs.Option) InstanceGenerator
NewTestInstanceGenerator generates a new InstanceGenerator for the given testnet Deprecated: use github.com/ipfs/go-libipfs/bitswap/testinstance.NewTestInstanceGenerator instead