Documentation ¶
Index ¶
- func MustAddProtocol(protocol ma.Protocol)
- func MustCreateHost(t *testing.T, ctx context.Context, signalAddr string) host.Host
- func MustCreatePeerIdentity(t *testing.T, privKey crypto.PrivKey) peer.ID
- func MustCreatePrivateKey(t *testing.T) crypto.PrivKey
- func MustCreateProtocol(code int, name string) ma.Protocol
- func MustCreateSignalAddr(t *testing.T, signalAddr string) multiaddr.Multiaddr
- func WaitForStream(t *testing.T, newStream func() (network.Stream, error), timeout time.Duration) network.Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustAddProtocol ¶
func MustCreateHost ¶
func MustCreatePeerIdentity ¶
func MustCreateSignalAddr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.