Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer( r *multichannel.Registrar, metricsProvider metrics.Provider, debug *localconfig.Debug, timeWindow time.Duration, mutualTLS bool, expirationCheckDisabled bool, ) ab.AtomicBroadcastServer
NewServer creates an ab.AtomicBroadcastServer based on the broadcast target and ledger Reader
Types ¶
type ChainReplicator ¶ added in v1.4.1
type ChainReplicator interface {
// ReplicateChains replicates the given chains using the given last system channel config block.
// It returns the names of the chains that were successfully replicated.
ReplicateChains(lastConfigBlock *common.Block, chains []string) []string
}
ChainReplicator replicates chains
type Factory ¶ added in v1.4.1
type Factory interface {
// GetOrCreate gets an existing ledger (if it exists)
// or creates it if it does not
GetOrCreate(chainID string) (blockledger.ReadWriter, error)
// ChannelIDs returns the channel IDs the Factory is aware of
ChannelIDs() []string
// Close releases all resources acquired by the factory
Close()
}
Factory retrieves or creates new ledgers by chainID
Click to show internal directories.
Click to hide internal directories.