...

Package smartbft

import "github.com/hyperledger/fabric/protos/orderer/smartbft"
Overview
Index

Overview ▾

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 (dst *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 (dst *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 (dst *Options) XXX_Merge(src proto.Message)
    func (m *Options) XXX_Size() int
    func (m *Options) XXX_Unmarshal(b []byte) error

Package files

configuration.pb.go

type ConfigMetadata

ConfigMetadata is serialized and set as the value of ConsensusType.Metadata in a channel configuration when the ConsensusType.Type is set "smartbft".

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:"-"`
}

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 (dst *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

Consenter represents a consenting node (i.e. replica).

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:"-"`
}

func (*Consenter) Descriptor

func (*Consenter) Descriptor() ([]byte, []int)

func (*Consenter) GetClientTlsCert

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

func (*Consenter) GetConsenterId

func (m *Consenter) GetConsenterId() uint64

func (*Consenter) GetHost

func (m *Consenter) GetHost() string

func (*Consenter) GetIdentity

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

func (*Consenter) GetMspId

func (m *Consenter) GetMspId() string

func (*Consenter) GetPort

func (m *Consenter) GetPort() uint32

func (*Consenter) GetServerTlsCert

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

func (*Consenter) ProtoMessage

func (*Consenter) ProtoMessage()

func (*Consenter) Reset

func (m *Consenter) Reset()

func (*Consenter) String

func (m *Consenter) String() string

func (*Consenter) XXX_DiscardUnknown

func (m *Consenter) XXX_DiscardUnknown()

func (*Consenter) XXX_Marshal

func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Consenter) XXX_Merge

func (dst *Consenter) XXX_Merge(src proto.Message)

func (*Consenter) XXX_Size

func (m *Consenter) XXX_Size() int

func (*Consenter) XXX_Unmarshal

func (m *Consenter) XXX_Unmarshal(b []byte) error

type Options

Options to be specified for all the smartbft nodes. These can be modified on a per-channel basis.

type Options struct {
    RequestBatchMaxCount      uint64   `protobuf:"varint,2,opt,name=request_batch_max_count,json=requestBatchMaxCount,proto3" json:"request_batch_max_count,omitempty"`
    RequestBatchMaxBytes      uint64   `protobuf:"varint,3,opt,name=request_batch_max_bytes,json=requestBatchMaxBytes,proto3" json:"request_batch_max_bytes,omitempty"`
    RequestBatchMaxInterval   string   `protobuf:"bytes,4,opt,name=request_batch_max_interval,json=requestBatchMaxInterval,proto3" json:"request_batch_max_interval,omitempty"`
    IncomingMessageBufferSize uint64   `protobuf:"varint,5,opt,name=incoming_message_buffer_size,json=incomingMessageBufferSize,proto3" json:"incoming_message_buffer_size,omitempty"`
    RequestPoolSize           uint64   `protobuf:"varint,6,opt,name=request_pool_size,json=requestPoolSize,proto3" json:"request_pool_size,omitempty"`
    RequestForwardTimeout     string   `protobuf:"bytes,7,opt,name=request_forward_timeout,json=requestForwardTimeout,proto3" json:"request_forward_timeout,omitempty"`
    RequestComplainTimeout    string   `protobuf:"bytes,8,opt,name=request_complain_timeout,json=requestComplainTimeout,proto3" json:"request_complain_timeout,omitempty"`
    RequestAutoRemoveTimeout  string   `protobuf:"bytes,9,opt,name=request_auto_remove_timeout,json=requestAutoRemoveTimeout,proto3" json:"request_auto_remove_timeout,omitempty"`
    ViewChangeResendInterval  string   `protobuf:"bytes,10,opt,name=view_change_resend_interval,json=viewChangeResendInterval,proto3" json:"view_change_resend_interval,omitempty"`
    ViewChangeTimeout         string   `protobuf:"bytes,11,opt,name=view_change_timeout,json=viewChangeTimeout,proto3" json:"view_change_timeout,omitempty"`
    LeaderHeartbeatTimeout    string   `protobuf:"bytes,12,opt,name=leader_heartbeat_timeout,json=leaderHeartbeatTimeout,proto3" json:"leader_heartbeat_timeout,omitempty"`
    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:"-"`
}

func (*Options) Descriptor

func (*Options) Descriptor() ([]byte, []int)

func (*Options) GetCollectTimeout

func (m *Options) GetCollectTimeout() string

func (*Options) GetIncomingMessageBufferSize

func (m *Options) GetIncomingMessageBufferSize() uint64

func (*Options) GetLeaderHeartbeatCount

func (m *Options) GetLeaderHeartbeatCount() uint64

func (*Options) GetLeaderHeartbeatTimeout

func (m *Options) GetLeaderHeartbeatTimeout() string

func (*Options) GetRequestAutoRemoveTimeout

func (m *Options) GetRequestAutoRemoveTimeout() string

func (*Options) GetRequestBatchMaxBytes

func (m *Options) GetRequestBatchMaxBytes() uint64

func (*Options) GetRequestBatchMaxCount

func (m *Options) GetRequestBatchMaxCount() uint64

func (*Options) GetRequestBatchMaxInterval

func (m *Options) GetRequestBatchMaxInterval() string

func (*Options) GetRequestComplainTimeout

func (m *Options) GetRequestComplainTimeout() string

func (*Options) GetRequestForwardTimeout

func (m *Options) GetRequestForwardTimeout() string

func (*Options) GetRequestPoolSize

func (m *Options) GetRequestPoolSize() uint64

func (*Options) GetSpeedUpViewChange

func (m *Options) GetSpeedUpViewChange() bool

func (*Options) GetSyncOnStart

func (m *Options) GetSyncOnStart() bool

func (*Options) GetViewChangeResendInterval

func (m *Options) GetViewChangeResendInterval() string

func (*Options) GetViewChangeTimeout

func (m *Options) GetViewChangeTimeout() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) Reset

func (m *Options) Reset()

func (*Options) String

func (m *Options) String() string

func (*Options) XXX_DiscardUnknown

func (m *Options) XXX_DiscardUnknown()

func (*Options) XXX_Marshal

func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Options) XXX_Merge

func (dst *Options) XXX_Merge(src proto.Message)

func (*Options) XXX_Size

func (m *Options) XXX_Size() int

func (*Options) XXX_Unmarshal

func (m *Options) XXX_Unmarshal(b []byte) error