package
0.29.6-upgrade-to-badger-v3
Repository: https://github.com/koko1123/flow-go-1.git
Documentation: pkg.go.dev
# Functions
GenerateEngines generates MeshEngines for the given networks.
GenerateIDs is a test helper that generate flow identities with a valid port and libp2p nodes.
GenerateIDsAndMiddlewares returns nodeIDs, libp2pNodes, middlewares, and observables which can be subscirbed to in order to witness protect events from pubsub.
No description provided by the author
GenerateMiddlewares creates and initializes middleware instances for all the identities.
GenerateNetworks generates the network for the given middlewares.
GenerateSubscriptionManagers creates and returns a ChannelSubscriptionManager for each middleware object.
NetworkPayloadFixture creates a blob of random bytes with the given size (in bytes) and returns it.
NewConnectionGater creates a new connection gater for testing with given allow listing filter.
No description provided by the author
NewResourceManager creates a new resource manager for testing with no limits.
No description provided by the author
No description provided by the author
OptionalSleep introduces a sleep to allow nodes to heartbeat and discover each other (only needed when using PubSub).
StartNodes starts the provided nodes and their peer managers using the provided irrecoverable context.
StartNodesAndNetworks starts the provided networks and libp2p nodes, returning the irrecoverable error channel.
StopComponents stops ReadyDoneAware instances in parallel and fails the test if they could not be stopped within the duration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
MeshEngine is a simple engine that is used for testing the correctness of driving the engines with libp2p, it simply receives and stores the incoming messages.
No description provided by the author
No description provided by the author
UpdatableIDProvider implements an IdentityProvider which can be manually updated by setting the IdentityList to a new value.
# Type aliases
ConduitSendWrapperFunc is a wrapper around the set of methods offered by the Conduit (e.g., Publish).