package
1.1.0-preview
Repository: https://github.com/forchain/fabric.git
Documentation: pkg.go.dev

# Functions

CreateChannel creates a channel with randomly generated ID of length 10.
GetBenchmarkServer retrieves next unused server in the pool.
GetBenchmarkServerPool returns the whole server pool for client to use This should be used after initialization.
Halt server.
InitializeServerPool instantiates a Benchmark server pool of size 'number'.
MakeNormalTx creates a properly signed transaction that could be used against `broadcast` API.
OrdererExec executes func for each orderer in parallel.
OrdererExecWithArgs executes func for each orderer in parallel.
RandomID generates a random string of num chars.
SeekAllBlocks seeks block from oldest to specified number.
WaitForChannels probes a channel till it's ready.
WaitForService blocks waiting for service to be registered.

# Constants

TODO Consider adding a unit pkg.

# Structs

BenchmarkServer is a pseudo-server that grpc services could be registered to.
BroadcastClient represents a broadcast client that is used to interact with `broadcast` API.
DeliverClient represents a deliver client that is used to interact with `deliver` API.