Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { // HashingAlgorithmVal is returned as the result of HashingAlgorithm() if set HashingAlgorithmVal func([]byte) []byte // BlockDataHashingStructureWidthVal is returned as the result of BlockDataHashingStructureWidth() BlockDataHashingStructureWidthVal uint32 // OrdererAddressesVal is returned as the result of OrdererAddresses() OrdererAddressesVal []string }
Channel is a mock implementation of config.Channel
func (*Channel) BlockDataHashingStructureWidth ¶
BlockDataHashingStructureWidth returns the BlockDataHashingStructureWidthVal
func (*Channel) HashingAlgorithm ¶
HashingAlgorithm returns the HashingAlgorithmVal if set, otherwise a fake simple hash function
type Orderer ¶
type Orderer struct { // ConsensusTypeVal is returned as the result of ConsensusType() ConsensusTypeVal string // BatchSizeVal is returned as the result of BatchSize() BatchSizeVal *ab.BatchSize // BatchTimeoutVal is returned as the result of BatchTimeout() BatchTimeoutVal time.Duration // KafkaBrokersVal is returned as the result of KafkaBrokers() KafkaBrokersVal []string // MaxChannelsCountVal is returns as the result of MaxChannelsCount() MaxChannelsCountVal uint64 // OrganizationsVal is returned as the result of Organizations() OrganizationsVal map[string]config.Org }
Orderer is a mock implementation of config.Orderer
func (*Orderer) BatchSize ¶
BatchSize returns the BatchSizeVal
func (*Orderer) BatchTimeout ¶
BatchTimeout returns the BatchTimeoutVal
func (*Orderer) ConsensusType ¶
ConsensusType returns the ConsensusTypeVal
func (*Orderer) KafkaBrokers ¶
KafkaBrokers returns the KafkaBrokersVal
func (*Orderer) MaxChannelsCount ¶
MaxChannelsCount returns the MaxChannelsCountVal
Click to show internal directories.
Click to hide internal directories.