Versions in this module Expand all Collapse all v0 v0.1.0 May 24, 2019 v0.0.1 Mar 1, 2019 Changes in this version + var SeededRand *rand.Rand + var ZeroLocalTCPAddress ma.Multiaddr + func NewSeededRand(seed int64) *rand.Rand + func RandLocalTCPAddress() ma.Multiaddr + func RandPeerID() (peer.ID, error) + func RandPeerIDFatal(t testing.TB) peer.ID + func RandTestKeyPair(bits int) (ci.PrivKey, ci.PubKey, error) + func SeededTestKeyPair(seed int64) (ci.PrivKey, ci.PubKey, error) + func WaitFor(ctx context.Context, check func() error) error + type Identity interface + Address func() ma.Multiaddr + ID func() peer.ID + PrivateKey func() ci.PrivKey + PublicKey func() ci.PubKey + func NewIdentity(ID peer.ID, addr ma.Multiaddr, privk ci.PrivKey, pubk ci.PubKey) Identity + func RandIdentity() (Identity, error) + func RandIdentityOrFatal(t *testing.T) Identity + type LatencyConfig struct + BlockstoreLatency time.Duration + NetworkLatency time.Duration + RoutingLatency time.Duration + func (c LatencyConfig) AllInstantaneous() LatencyConfig + func (c LatencyConfig) Blockstore7200RPM() LatencyConfig + func (c LatencyConfig) BlockstoreFastSSD2014() LatencyConfig + func (c LatencyConfig) BlockstoreSlowSSD2014() LatencyConfig + func (c LatencyConfig) NetworkIntraDatacenter2014() LatencyConfig + func (c LatencyConfig) NetworkNYtoSF() LatencyConfig + func (c LatencyConfig) RoutingSlow() LatencyConfig + type LockedRandSource struct + func (r *LockedRandSource) Int63() (n int64) + func (r *LockedRandSource) Seed(seed int64) + type PeerNetParams struct + Addr ma.Multiaddr + ID peer.ID + PrivKey ci.PrivKey + PubKey ci.PubKey + func RandPeerNetParams() (*PeerNetParams, error) + func RandPeerNetParamsOrFatal(t *testing.T) PeerNetParams