Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Log = logger.GetOrCreate("integrationtests/broadcaster")
Log -
var TestHasher = blake2b.NewBlake2b()
TestHasher -
var TestKeyGenerator = signing.NewKeyGenerator(suite)
TestKeyGenerator -
var TestMarshalizer = &marshal.JsonMarshalizer{}
TestMarshalizer -
var TestSingleSigner = &singlesig.Ed25519Signer{}
TestSingleSigner -
Functions ¶
func ConnectNodes ¶
func ConnectNodes(nodes []Connectable)
ConnectNodes will try to connect all provided connectable instances in a full mesh fashion
func CreateLinkedMessengers ¶
CreateLinkedMessengers will create the specified number of messengers and will connect them all between them
func CreateMessengerFromConfig ¶
CreateMessengerFromConfig creates a new libp2p messenger with provided configuration
func CreateMessengerWithNoDiscovery ¶
CreateMessengerWithNoDiscovery creates a new libp2p messenger with no peer discovery
Types ¶
type Broadcaster ¶
type Broadcaster interface { BroadcastSignature(signature []byte, messageHash []byte) BroadcastJoinTopic() SortedPublicKeys() [][]byte AddBroadcastClient(client core.BroadcastClient) error Close() error IsInterfaceNil() bool }
Broadcaster defines a component able to communicate with other such instances and manage signatures and other state related data
type Connectable ¶
type Connectable interface { ConnectTo(connectable Connectable) error GetConnectableAddress() string IsInterfaceNil() bool }
Connectable defines the operations for a struct to become connectable by other struct In other words, all instances that implement this interface are able to connect with each other