smartbft

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (ConfigMetadataValidationError) Error

Error satisfies the builtin error interface

func (ConfigMetadataValidationError) ErrorName

func (e ConfigMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigMetadataValidationError) Field

Field function returns field value.

func (ConfigMetadataValidationError) Key

Key function returns key value.

func (ConfigMetadataValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Consenter.ProtoReflect.Descriptor instead.

func (*Consenter) GetClientTlsCert

func (x *Consenter) GetClientTlsCert() []byte

func (*Consenter) GetConsenterId

func (x *Consenter) GetConsenterId() uint64

func (*Consenter) GetHost

func (x *Consenter) GetHost() string

func (*Consenter) GetIdentity

func (x *Consenter) GetIdentity() []byte

func (*Consenter) GetMspId

func (x *Consenter) GetMspId() string

func (*Consenter) GetPort

func (x *Consenter) GetPort() uint32

func (*Consenter) GetServerTlsCert

func (x *Consenter) GetServerTlsCert() []byte

func (*Consenter) ProtoMessage

func (*Consenter) ProtoMessage()

func (*Consenter) ProtoReflect

func (x *Consenter) ProtoReflect() protoreflect.Message

func (*Consenter) Reset

func (x *Consenter) Reset()

func (*Consenter) String

func (x *Consenter) String() string

func (*Consenter) Validate

func (m *Consenter) Validate() error

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

func (m *Consenter) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetCollectTimeout

func (x *Options) GetCollectTimeout() string

func (*Options) GetIncomingMessageBufferSize

func (x *Options) GetIncomingMessageBufferSize() uint64

func (*Options) GetLeaderHeartbeatCount

func (x *Options) GetLeaderHeartbeatCount() uint64

func (*Options) GetLeaderHeartbeatTimeout

func (x *Options) GetLeaderHeartbeatTimeout() string

func (*Options) GetRequestAutoRemoveTimeout

func (x *Options) GetRequestAutoRemoveTimeout() string

func (*Options) GetRequestBatchMaxBytes

func (x *Options) GetRequestBatchMaxBytes() uint64

func (*Options) GetRequestBatchMaxCount

func (x *Options) GetRequestBatchMaxCount() uint64

func (*Options) GetRequestBatchMaxInterval

func (x *Options) GetRequestBatchMaxInterval() string

func (*Options) GetRequestComplainTimeout

func (x *Options) GetRequestComplainTimeout() string

func (*Options) GetRequestForwardTimeout

func (x *Options) GetRequestForwardTimeout() string

func (*Options) GetRequestPoolSize

func (x *Options) GetRequestPoolSize() uint64

func (*Options) GetSpeedUpViewChange

func (x *Options) GetSpeedUpViewChange() bool

func (*Options) GetSyncOnStart

func (x *Options) GetSyncOnStart() bool

func (*Options) GetViewChangeResendInterval

func (x *Options) GetViewChangeResendInterval() string

func (*Options) GetViewChangeTimeout

func (x *Options) GetViewChangeTimeout() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

func (*Options) Validate

func (m *Options) Validate() error

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

func (m *Options) ValidateAll() error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL