Documentation ¶
Index ¶
- type ConfigMetadata
- func (*ConfigMetadata) Descriptor() ([]byte, []int)
- func (m *ConfigMetadata) GetConsenters() []*Consenter
- func (m *ConfigMetadata) GetOptions() *Options
- func (*ConfigMetadata) ProtoMessage()
- func (m *ConfigMetadata) Reset()
- func (m *ConfigMetadata) String() string
- func (m *ConfigMetadata) XXX_DiscardUnknown()
- func (m *ConfigMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigMetadata) XXX_Merge(src proto.Message)
- func (m *ConfigMetadata) XXX_Size() int
- func (m *ConfigMetadata) XXX_Unmarshal(b []byte) error
- type Consenter
- func (*Consenter) Descriptor() ([]byte, []int)
- func (m *Consenter) GetClientTlsCert() []byte
- func (m *Consenter) GetConsenterId() uint64
- func (m *Consenter) GetHost() string
- func (m *Consenter) GetIdentity() []byte
- func (m *Consenter) GetMspId() string
- func (m *Consenter) GetPort() uint32
- func (m *Consenter) GetServerTlsCert() []byte
- func (*Consenter) ProtoMessage()
- func (m *Consenter) Reset()
- func (m *Consenter) String() string
- func (m *Consenter) XXX_DiscardUnknown()
- func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Consenter) XXX_Merge(src proto.Message)
- func (m *Consenter) XXX_Size() int
- func (m *Consenter) XXX_Unmarshal(b []byte) error
- type Options
- func (*Options) Descriptor() ([]byte, []int)
- func (m *Options) GetCollectTimeout() string
- func (m *Options) GetIncomingMessageBufferSize() uint64
- func (m *Options) GetLeaderHeartbeatCount() uint64
- func (m *Options) GetLeaderHeartbeatTimeout() string
- func (m *Options) GetRequestAutoRemoveTimeout() string
- func (m *Options) GetRequestBatchMaxBytes() uint64
- func (m *Options) GetRequestBatchMaxCount() uint64
- func (m *Options) GetRequestBatchMaxInterval() string
- func (m *Options) GetRequestComplainTimeout() string
- func (m *Options) GetRequestForwardTimeout() string
- func (m *Options) GetRequestPoolSize() uint64
- func (m *Options) GetSpeedUpViewChange() bool
- func (m *Options) GetSyncOnStart() bool
- func (m *Options) GetViewChangeResendInterval() string
- func (m *Options) GetViewChangeTimeout() string
- func (*Options) ProtoMessage()
- func (m *Options) Reset()
- func (m *Options) String() string
- func (m *Options) XXX_DiscardUnknown()
- func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Options) XXX_Merge(src proto.Message)
- func (m *Options) XXX_Size() int
- func (m *Options) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMetadata ¶
type ConfigMetadata struct { Consenters []*Consenter `protobuf:"bytes,1,rep,name=consenters,proto3" json:"consenters,omitempty"` Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigMetadata is serialized and set as the value of ConsensusType.Metadata in a channel configuration when the ConsensusType.Type is set "smartbft".
func (*ConfigMetadata) Descriptor ¶
func (*ConfigMetadata) Descriptor() ([]byte, []int)
func (*ConfigMetadata) GetConsenters ¶
func (m *ConfigMetadata) GetConsenters() []*Consenter
func (*ConfigMetadata) GetOptions ¶
func (m *ConfigMetadata) GetOptions() *Options
func (*ConfigMetadata) ProtoMessage ¶
func (*ConfigMetadata) ProtoMessage()
func (*ConfigMetadata) Reset ¶
func (m *ConfigMetadata) Reset()
func (*ConfigMetadata) String ¶
func (m *ConfigMetadata) String() string
func (*ConfigMetadata) XXX_DiscardUnknown ¶
func (m *ConfigMetadata) XXX_DiscardUnknown()
func (*ConfigMetadata) XXX_Marshal ¶
func (m *ConfigMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigMetadata) XXX_Merge ¶
func (m *ConfigMetadata) XXX_Merge(src proto.Message)
func (*ConfigMetadata) XXX_Size ¶
func (m *ConfigMetadata) XXX_Size() int
func (*ConfigMetadata) XXX_Unmarshal ¶
func (m *ConfigMetadata) XXX_Unmarshal(b []byte) error
type Consenter ¶
type Consenter struct { ConsenterId uint64 `protobuf:"varint,1,opt,name=consenter_id,json=consenterId,proto3" json:"consenter_id,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` MspId string `protobuf:"bytes,4,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"` Identity []byte `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` ClientTlsCert []byte `protobuf:"bytes,6,opt,name=client_tls_cert,json=clientTlsCert,proto3" json:"client_tls_cert,omitempty"` ServerTlsCert []byte `protobuf:"bytes,7,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Consenter represents a consenting node (i.e. replica).
func (*Consenter) Descriptor ¶
func (*Consenter) GetClientTlsCert ¶
func (*Consenter) GetConsenterId ¶
func (*Consenter) GetIdentity ¶
func (*Consenter) GetServerTlsCert ¶
func (*Consenter) ProtoMessage ¶
func (*Consenter) ProtoMessage()
func (*Consenter) XXX_DiscardUnknown ¶
func (m *Consenter) XXX_DiscardUnknown()
func (*Consenter) XXX_Marshal ¶
func (*Consenter) XXX_Unmarshal ¶
type Options ¶
type Options struct { RequestBatchMaxCount uint64 `` /* 126-byte string literal not displayed */ RequestBatchMaxBytes uint64 `` /* 126-byte string literal not displayed */ RequestBatchMaxInterval string `` /* 134-byte string literal not displayed */ IncomingMessageBufferSize uint64 `` /* 141-byte string literal not displayed */ RequestPoolSize uint64 `protobuf:"varint,6,opt,name=request_pool_size,json=requestPoolSize,proto3" json:"request_pool_size,omitempty"` RequestForwardTimeout string `` /* 126-byte string literal not displayed */ RequestComplainTimeout string `` /* 129-byte string literal not displayed */ RequestAutoRemoveTimeout string `` /* 137-byte string literal not displayed */ ViewChangeResendInterval string `` /* 138-byte string literal not displayed */ ViewChangeTimeout string `protobuf:"bytes,11,opt,name=view_change_timeout,json=viewChangeTimeout,proto3" json:"view_change_timeout,omitempty"` LeaderHeartbeatTimeout string `` /* 130-byte string literal not displayed */ LeaderHeartbeatCount uint64 `protobuf:"varint,13,opt,name=leader_heartbeat_count,json=leaderHeartbeatCount,proto3" json:"leader_heartbeat_count,omitempty"` CollectTimeout string `protobuf:"bytes,14,opt,name=collect_timeout,json=collectTimeout,proto3" json:"collect_timeout,omitempty"` SyncOnStart bool `protobuf:"varint,15,opt,name=sync_on_start,json=syncOnStart,proto3" json:"sync_on_start,omitempty"` SpeedUpViewChange bool `protobuf:"varint,16,opt,name=speed_up_view_change,json=speedUpViewChange,proto3" json:"speed_up_view_change,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Options to be specified for all the smartbft nodes. These can be modified on a per-channel basis.
func (*Options) Descriptor ¶
func (*Options) GetCollectTimeout ¶
func (*Options) GetIncomingMessageBufferSize ¶
func (*Options) GetLeaderHeartbeatCount ¶
func (*Options) GetLeaderHeartbeatTimeout ¶
func (*Options) GetRequestAutoRemoveTimeout ¶
func (*Options) GetRequestBatchMaxBytes ¶
func (*Options) GetRequestBatchMaxCount ¶
func (*Options) GetRequestBatchMaxInterval ¶
func (*Options) GetRequestComplainTimeout ¶
func (*Options) GetRequestForwardTimeout ¶
func (*Options) GetRequestPoolSize ¶
func (*Options) GetSpeedUpViewChange ¶
func (*Options) GetSyncOnStart ¶
func (*Options) GetViewChangeResendInterval ¶
func (*Options) GetViewChangeTimeout ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) XXX_DiscardUnknown ¶
func (m *Options) XXX_DiscardUnknown()
func (*Options) XXX_Marshal ¶
func (*Options) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.