package
1.4.0
Repository: https://github.com/yunpeng-j/fabric.git
Documentation: pkg.go.dev

# Packages

Code generated by mockery v1.0.0.

# Functions

BlockPullerFromConfigBlock returns a BlockPuller that doesn't verify signatures on blocks.
ConfigFromBlock returns a ConfigEnvelope if exists, or a *NotAConfigBlock error.
DERtoPEM returns a PEM representation of the DER encoded certificate.
EndpointconfigFromConfigBlock retrieves TLS CA certificates and endpoints from a config block.
IsNewChannelBlock returns a name of the channel in case it holds a channel create transaction, or empty string otherwise.
NewConnectionStore creates a new ConnectionStore with the given SecureDialer.
NewImpatientStream returns a ImpatientStreamCreator that creates impatientStreams.
NewTLSPinningDialer creates a new PredicateDialer.
Participant returns whether the caller participates in the chain.
PullerConfigFromTopLevelConfig creates a PullerConfig from a TopLevel config, and from a signer and TLS key cert pair.
SignatureSetFromBlock creates a signature set out of a block.
VerifyBlockHash verifies the hash chain of the block with the given index among the blocks of the given block buffer.
VerifyBlocks verifies the given consecutive sequence of blocks is valid, and returns nil if it's valid, else an error.
VerifyBlockSignature verifies the signature on the block with the given BlockVerifier and the given config.

# Constants

DefaultRPCTimeout is the default RPC timeout that RPCs use.
RetryTimeout is the time the block puller retries.

# Variables

ErrNotInChannel denotes that an ordering node is not in the channel.

# Structs

BlockPuller pulls blocks from remote ordering nodes.
ChainInspector walks over a chain.
Comm implements Communicator.
ConnectionStore stores connections to remote nodes.
EndpointConfig defines a configuration of endpoints of ordering service nodes.
ImpatientStream aborts the stream if it waits for too long for a message.
NoopBlockVerifier doesn't verify block signatures.
PredicateDialer creates gRPC connections that are only established if the given predicate is fulfilled.
PullerConfig configures a BlockPuller.
RemoteContext interacts with remote cluster nodes.
RemoteNode represents a cluster member.
Replicator replicates chains.
RPC performs remote procedure calls to remote cluster nodes.
Service defines the raft Service.
StandardDialer wraps a PredicateDialer to a standard cluster.Dialer that passes in a nil verify function.
Stub holds all information about the remote node, including the RemoteContext for it, and serializes some operations on it.

# Interfaces

BlockVerifier verifies block signatures.
ChainPuller pulls blocks from a chain.
ChannelExtractor extracts the channel of a given message, or returns an empty string if that's not possible.
ChannelLister returns a list of channels.
Client is the definition of operations that the Cluster gRPC service exposes to cluster nodes.
Communicator defines communication for a consenter.
ConnectionMapper maps certificates to connections.
Dialer creates a gRPC connection to a remote address.
Dispatcher dispatches requests.
Handler handles Step() and Submit() requests and returns a corresponding response.
LedgerFactory retrieves or creates new ledgers by chainID.
LedgerWriter allows the caller to write blocks and inspect the height.
SecureDialer connects to a remote address.
SubmitClient is the Submit gRPC stream.
SubmitStream defines the gRPC stream for sending transactions, and receiving corresponding responses.

# Type aliases

BlockSequenceVerifier verifies that the given consecutive sequence of blocks is valid.
ConnByCertMap maps certificates represented as strings to gRPC connections.
ImpatientStreamCreator creates an ImpatientStream.
MemberMapping defines NetworkMembers by their ID.
MembersByChannel is a mapping from channel name to MemberMapping.
RemoteVerifier verifies the connection to the remote host.
StringSet is a set of strings.