Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + func InternetLatencyDelayGenerator(mediumDelay time.Duration, largeDelay time.Duration, percentMedium float64, ...) delay.Generator + type Network interface + Adapter func(tnet.Identity, ...bsnet.NetOpt) bsnet.BitSwapNetwork + HasPeer func(peer.ID) bool + func RateLimitedVirtualNetwork(rs mockrouting.Server, d delay.D, rateLimitGenerator RateLimitGenerator) Network + func StreamNet(ctx context.Context, net mockpeernet.Mocknet, rs mockrouting.Server) (Network, error) + func VirtualNetwork(rs mockrouting.Server, d delay.D) Network + type RateLimitGenerator interface + NextRateLimit func() float64 + func FixedRateLimitGenerator(rateLimit float64) RateLimitGenerator + func VariableRateLimitGenerator(rateLimit float64, std float64, rng *rand.Rand) RateLimitGenerator