p2ptest

package
v0.0.0-...-d4b7e32 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(adjList AdjList)

func Cluster

func Cluster(adjList AdjList)

func HubAndSpoke

func HubAndSpoke(adjList AdjList)

func NewDropFirstPairwise

func NewDropFirstPairwise() func(*memswarm.Message) bool

NewDropFirstPairwise returns a Message transformer which drops the first message between each pair of addresses {src, dst}.

NewDropFirstPairwise tracks src/dst combinations. NewDropFirstTuple tracks src/dst permutations.

func NewDropFirstTuple

func NewDropFirstTuple() func(*memswarm.Message) bool

NewDropFirstTuple returns a Message transformer which drops the first message for each (src, dst) tuple.

NewDropFirstTuple tracks src/dst permutations. NewDropFirstPairwise tracks src/dst combinations.

func NewTestKey

func NewTestKey(t testing.TB, i int) ed25519.PrivateKey

func Ring

func Ring(adjList AdjList)

Types

type AdjList

type AdjList = [][]int

func MakeChain

func MakeChain(n int) AdjList

func MakeCluster

func MakeCluster(n int) AdjList

func MakeHubAndSpoke

func MakeHubAndSpoke(n int) AdjList

func MakeRing

func MakeRing(n int) AdjList

Jump to

Keyboard shortcuts

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