testsession

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 6 Imported by: 4

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

type Instance = libipfs.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL