Documentation ¶
Index ¶
- Variables
- type ConfigMetadata
- func (*ConfigMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigMetadata) GetConsenters() []*Consenter
- func (x *ConfigMetadata) GetOptions() *Options
- func (*ConfigMetadata) ProtoMessage()
- func (x *ConfigMetadata) ProtoReflect() protoreflect.Message
- func (x *ConfigMetadata) Reset()
- func (x *ConfigMetadata) String() string
- func (m *ConfigMetadata) Validate() error
- func (m *ConfigMetadata) ValidateAll() error
- type ConfigMetadataMultiError
- type ConfigMetadataValidationError
- func (e ConfigMetadataValidationError) Cause() error
- func (e ConfigMetadataValidationError) Error() string
- func (e ConfigMetadataValidationError) ErrorName() string
- func (e ConfigMetadataValidationError) Field() string
- func (e ConfigMetadataValidationError) Key() bool
- func (e ConfigMetadataValidationError) Reason() string
- type Consenter
- func (*Consenter) Descriptor() ([]byte, []int)deprecated
- func (x *Consenter) GetClientTlsCert() []byte
- func (x *Consenter) GetConsenterId() uint64
- func (x *Consenter) GetHost() string
- func (x *Consenter) GetIdentity() []byte
- func (x *Consenter) GetMspId() string
- func (x *Consenter) GetPort() uint32
- func (x *Consenter) GetServerTlsCert() []byte
- func (*Consenter) ProtoMessage()
- func (x *Consenter) ProtoReflect() protoreflect.Message
- func (x *Consenter) Reset()
- func (x *Consenter) String() string
- func (m *Consenter) Validate() error
- func (m *Consenter) ValidateAll() error
- type ConsenterMultiError
- type ConsenterValidationError
- type Options
- func (*Options) Descriptor() ([]byte, []int)deprecated
- func (x *Options) GetCollectTimeout() string
- func (x *Options) GetIncomingMessageBufferSize() uint64
- func (x *Options) GetLeaderHeartbeatCount() uint64
- func (x *Options) GetLeaderHeartbeatTimeout() string
- func (x *Options) GetRequestAutoRemoveTimeout() string
- func (x *Options) GetRequestBatchMaxBytes() uint64
- func (x *Options) GetRequestBatchMaxCount() uint64
- func (x *Options) GetRequestBatchMaxInterval() string
- func (x *Options) GetRequestComplainTimeout() string
- func (x *Options) GetRequestForwardTimeout() string
- func (x *Options) GetRequestPoolSize() uint64
- func (x *Options) GetSpeedUpViewChange() bool
- func (x *Options) GetSyncOnStart() bool
- func (x *Options) GetViewChangeResendInterval() string
- func (x *Options) GetViewChangeTimeout() string
- func (*Options) ProtoMessage()
- func (x *Options) ProtoReflect() protoreflect.Message
- func (x *Options) Reset()
- func (x *Options) String() string
- func (m *Options) Validate() error
- func (m *Options) ValidateAll() error
- type OptionsMultiError
- type OptionsValidationError
Constants ¶
This section is empty.
Variables ¶
var File_smartbft_configuration_proto protoreflect.FileDescriptor
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"` // contains filtered or unexported fields }
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
deprecated
func (*ConfigMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ConfigMetadata.ProtoReflect.Descriptor instead.
func (*ConfigMetadata) GetConsenters ¶
func (x *ConfigMetadata) GetConsenters() []*Consenter
func (*ConfigMetadata) GetOptions ¶
func (x *ConfigMetadata) GetOptions() *Options
func (*ConfigMetadata) ProtoMessage ¶
func (*ConfigMetadata) ProtoMessage()
func (*ConfigMetadata) ProtoReflect ¶
func (x *ConfigMetadata) ProtoReflect() protoreflect.Message
func (*ConfigMetadata) Reset ¶
func (x *ConfigMetadata) Reset()
func (*ConfigMetadata) String ¶
func (x *ConfigMetadata) String() string
func (*ConfigMetadata) Validate ¶
func (m *ConfigMetadata) Validate() error
Validate checks the field values on ConfigMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigMetadata) ValidateAll ¶
func (m *ConfigMetadata) ValidateAll() error
ValidateAll checks the field values on ConfigMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMetadataMultiError, or nil if none found.
type ConfigMetadataMultiError ¶
type ConfigMetadataMultiError []error
ConfigMetadataMultiError is an error wrapping multiple validation errors returned by ConfigMetadata.ValidateAll() if the designated constraints aren't met.
func (ConfigMetadataMultiError) AllErrors ¶
func (m ConfigMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMetadataMultiError) Error ¶
func (m ConfigMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigMetadataValidationError ¶
type ConfigMetadataValidationError struct {
// contains filtered or unexported fields
}
ConfigMetadataValidationError is the validation error returned by ConfigMetadata.Validate if the designated constraints aren't met.
func (ConfigMetadataValidationError) Cause ¶
func (e ConfigMetadataValidationError) Cause() error
Cause function returns cause value.
func (ConfigMetadataValidationError) Error ¶
func (e ConfigMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigMetadataValidationError) ErrorName ¶
func (e ConfigMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigMetadataValidationError) Field ¶
func (e ConfigMetadataValidationError) Field() string
Field function returns field value.
func (ConfigMetadataValidationError) Key ¶
func (e ConfigMetadataValidationError) Key() bool
Key function returns key value.
func (ConfigMetadataValidationError) Reason ¶
func (e ConfigMetadataValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
Consenter represents a consenting node (i.e. replica).
func (*Consenter) Descriptor
deprecated
func (*Consenter) GetClientTlsCert ¶
func (*Consenter) GetConsenterId ¶
func (*Consenter) GetIdentity ¶
func (*Consenter) GetServerTlsCert ¶
func (*Consenter) ProtoMessage ¶
func (*Consenter) ProtoMessage()
func (*Consenter) ProtoReflect ¶
func (x *Consenter) ProtoReflect() protoreflect.Message
func (*Consenter) Validate ¶
Validate checks the field values on Consenter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Consenter) ValidateAll ¶
ValidateAll checks the field values on Consenter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConsenterMultiError, or nil if none found.
type ConsenterMultiError ¶
type ConsenterMultiError []error
ConsenterMultiError is an error wrapping multiple validation errors returned by Consenter.ValidateAll() if the designated constraints aren't met.
func (ConsenterMultiError) AllErrors ¶
func (m ConsenterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsenterMultiError) Error ¶
func (m ConsenterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsenterValidationError ¶
type ConsenterValidationError struct {
// contains filtered or unexported fields
}
ConsenterValidationError is the validation error returned by Consenter.Validate if the designated constraints aren't met.
func (ConsenterValidationError) Cause ¶
func (e ConsenterValidationError) Cause() error
Cause function returns cause value.
func (ConsenterValidationError) Error ¶
func (e ConsenterValidationError) Error() string
Error satisfies the builtin error interface
func (ConsenterValidationError) ErrorName ¶
func (e ConsenterValidationError) ErrorName() string
ErrorName returns error name.
func (ConsenterValidationError) Field ¶
func (e ConsenterValidationError) Field() string
Field function returns field value.
func (ConsenterValidationError) Key ¶
func (e ConsenterValidationError) Key() bool
Key function returns key value.
func (ConsenterValidationError) Reason ¶
func (e ConsenterValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
Options to be specified for all the smartbft nodes. These can be modified on a per-channel basis.
func (*Options) Descriptor
deprecated
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) ProtoReflect ¶
func (x *Options) ProtoReflect() protoreflect.Message
func (*Options) Validate ¶
Validate checks the field values on Options with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Options) ValidateAll ¶
ValidateAll checks the field values on Options with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OptionsMultiError, or nil if none found.
type OptionsMultiError ¶
type OptionsMultiError []error
OptionsMultiError is an error wrapping multiple validation errors returned by Options.ValidateAll() if the designated constraints aren't met.
func (OptionsMultiError) AllErrors ¶
func (m OptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OptionsMultiError) Error ¶
func (m OptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OptionsValidationError ¶
type OptionsValidationError struct {
// contains filtered or unexported fields
}
OptionsValidationError is the validation error returned by Options.Validate if the designated constraints aren't met.
func (OptionsValidationError) Cause ¶
func (e OptionsValidationError) Cause() error
Cause function returns cause value.
func (OptionsValidationError) Error ¶
func (e OptionsValidationError) Error() string
Error satisfies the builtin error interface
func (OptionsValidationError) ErrorName ¶
func (e OptionsValidationError) ErrorName() string
ErrorName returns error name.
func (OptionsValidationError) Field ¶
func (e OptionsValidationError) Field() string
Field function returns field value.
func (OptionsValidationError) Key ¶
func (e OptionsValidationError) Key() bool
Key function returns key value.
func (OptionsValidationError) Reason ¶
func (e OptionsValidationError) Reason() string
Reason function returns reason value.