Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConsensusStateNormal indicates normal orderer operation. ConsensusStateNormal ConsensusState = "STATE_NORMAL" // ConsensusStateMaintenance indicates the orderer is in consensus type migration. ConsensusStateMaintenance ConsensusState = "STATE_MAINTENANCE" // ConsensusTypeSolo identifies the solo consensus implementation. // Deprecated: the solo consensus type is no longer supported ConsensusTypeSolo = "solo" // ConsensusTypeKafka identifies the Kafka-based consensus implementation. // Deprecated: the kafka consensus type is no longer supported ConsensusTypeKafka = "kafka" // ConsensusTypeEtcdRaft identifies the Raft-based consensus implementation. ConsensusTypeEtcdRaft = "etcdraft" // KafkaBrokersKey is the common.ConfigValue type key name for the KafkaBrokers message. // Deprecated: the kafka consensus type is no longer supported KafkaBrokersKey = "KafkaBrokers" // ConsensusTypeKey is the common.ConfigValue type key name for the ConsensusType message. ConsensusTypeKey = "ConsensusType" // BatchSizeKey is the common.ConfigValue type key name for the BatchSize message. BatchSizeKey = "BatchSize" // BatchTimeoutKey is the common.ConfigValue type key name for the BatchTimeout message. BatchTimeoutKey = "BatchTimeout" // ChannelRestrictionsKey is the key name for the ChannelRestrictions message. ChannelRestrictionsKey = "ChannelRestrictions" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchSize ¶
type BatchSize struct { // MaxMessageCount is the max message count. MaxMessageCount uint32 // AbsoluteMaxBytes is the max block size (not including headers). AbsoluteMaxBytes uint32 // PreferredMaxBytes is the preferred size of blocks. PreferredMaxBytes uint32 }
BatchSize is the configuration affecting the size of batches.
type ConsensusState ¶
type ConsensusState string
ConsensusState defines the orderer mode of operation. Options: `ConsensusStateNormal` and `ConsensusStateMaintenance`
type Consenter ¶
type Consenter struct { Address EtcdAddress ClientTLSCert *x509.Certificate ServerTLSCert *x509.Certificate }
Consenter represents a consenting node (i.e. replica).
type EtcdAddress ¶
EtcdAddress contains the hostname and port for an endpoint.
type EtcdRaft ¶
type EtcdRaft struct { Consenters []Consenter Options EtcdRaftOptions }
EtcdRaft is serialized and set as the value of ConsensusType.Metadata in a channel configuration when the ConsensusType.Type is set to "etcdraft".
type EtcdRaftOptions ¶
type EtcdRaftOptions struct { TickInterval string ElectionTick uint32 HeartbeatTick uint32 MaxInflightBlocks uint32 // Take snapshot when cumulative data exceeds certain size in bytes. SnapshotIntervalSize uint32 }
EtcdRaftOptions to be specified for all the etcd/raft nodes. These can be modified on a per-channel basis.
Click to show internal directories.
Click to hide internal directories.