package
2.0.0-alpha+incompatible
Repository: https://github.com/hyperledger-labs/fabric-block-archiving.git
Documentation: pkg.go.dev

# Packages

Code generated by counterfeiter.

# Functions

AnyChannel accepts all channels.
BlockPullerFromConfigBlock returns a BlockPuller that doesn't verify signatures on blocks.
BlockToString returns a string representation of this block.
ChannelCreationBlockToGenesisBlock converts a channel creation block to a genesis block.
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.
LastConfigBlock returns the last config block relative to the given block.
NewConnectionStore creates a new ConnectionStore with the given SecureDialer.
NewImpatientStream returns a ImpatientStreamCreator that creates impatientStreams.
NewMetrics initializes new metrics for the cluster infrastructure.
NewStreamsByType returns a mapping of operation type to a mapping of destination to stream.
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.
PullLastConfigBlock pulls the last configuration block, or returns an error on failure.
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

No description provided by the author
MinimumExpirationWarningInterval is the default minimum time interval between consecutive warnings about certificate expiration.
RetryTimeout is the time the block puller retries.
No description provided by the author

# Variables

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
ErrForbidden denotes that an ordering node refuses sending blocks due to access control.
ErrNotInChannel denotes that an ordering node is not in the channel.
No description provided by the author
ErrServiceUnavailable denotes that an ordering node is not servicing at the moment.
ErrSkipped denotes that replicating a chain was skipped.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BlockPuller pulls blocks from remote ordering nodes.
BlockValidationPolicyVerifier verifies signatures based on the block validation policy.
BlockVerifierAssembler creates a BlockVerifier out of a config envelope.
ChainInspector walks over a chain.
ChannelGenesisBlock wraps a Block and its channel name.
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.
LedgerInterceptor intercepts block commits.
Metrics defines the metrics for the cluster.
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.
Stream is used to send/receive messages to/from the remote cluster member.
StreamCountReporter reports the number of streams currently connected to this node.
Stub holds all information about the remote node, including the RemoteContext for it, and serializes some operations on it.
VerificationRegistry registers verifiers and retrieves them.

# Interfaces

BlockRetriever retrieves blocks.
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.
ClusterClient creates streams that point to a remote cluster member.
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.
A MetricsProvider is an abstraction for a metrics provider.
SecureDialer connects to a remote address.
StepClient defines a client that sends and receives Step requests and responses.
StepStream defines the gRPC stream for sending transactions, and receiving corresponding responses.
VerifierFactory creates BlockVerifiers.
VerifierRetriever retrieves BlockVerifiers for channels.

# Type aliases

BlockCommitFunc signals a block commit.
BlockSequenceVerifier verifies that the given consecutive sequence of blocks is valid.
ChannelPredicate accepts channels according to their names.
ConnByCertMap maps certificates represented as strings to gRPC connections.
GenesisBlocks aggregates several ChannelGenesisBlocks.
ImpatientStreamCreator creates an ImpatientStream.
MemberMapping defines NetworkMembers by their ID.
MembersByChannel is a mapping from channel name to MemberMapping.
OperationType denotes a type of operation that the RPC can perform such as sending a transaction, or a consensus related message.
RemoteVerifier verifies the connection to the remote host.
SelfMembershipPredicate determines whether the caller is found in the given config block.
StreamOperation denotes an operation done by a stream, such a Send or Receive.
StringSet is a set of strings.