Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket interface { // Send put message to outbound queue Send(to identity.NodeID, m interface{}) // MulticastQuorum sends msg to random number of nodes MulticastQuorum(quorum int, m interface{}) // Broadcast send to all peers Broadcast(m interface{}) // Recv receives a message Recv() interface{} Close() // Fault injection Drop(id identity.NodeID, t int) // drops every message send to NodeID last for t seconds Slow(id identity.NodeID, d int, t int) // delays every message send to NodeID for d ms and last for t seconds Flaky(id identity.NodeID, p float64, t int) // drop message by chance p for t seconds Crash(t int) // node crash for t seconds }
Socket integrates all networking interface and fault injections
Click to show internal directories.
Click to hide internal directories.