Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 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 ThreadSafeCloserMapDatastore() ds2.ThreadSafeDatastoreCloser + type Identity interface + Address func() ma.Multiaddr + ID func() peer.ID + PrivateKey func() ci.PrivKey + PublicKey func() ci.PubKey + 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) All_Instantaneous() LatencyConfig + func (c LatencyConfig) Blockstore_7200RPM() LatencyConfig + func (c LatencyConfig) Blockstore_FastSSD2014() LatencyConfig + func (c LatencyConfig) Blockstore_SlowSSD2014() LatencyConfig + func (c LatencyConfig) Network_IntraDatacenter2014() LatencyConfig + func (c LatencyConfig) Network_NYtoSF() LatencyConfig + func (c LatencyConfig) Routing_Slow() 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