smartbft

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options_Rotation_name = map[int32]string{
	0: "ROTATION_UNSPECIFIED",
	1: "ROTATION_OFF",
	2: "ROTATION_ON",
}
View Source
var Options_Rotation_value = map[string]int32{
	"ROTATION_UNSPECIFIED": 0,
	"ROTATION_OFF":         1,
	"ROTATION_ON":          2,
}

Functions

This section is empty.

Types

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,5,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 */
	RequestMaxBytes           uint64           `protobuf:"varint,9,opt,name=request_max_bytes,json=requestMaxBytes,proto3" json:"request_max_bytes,omitempty"`
	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"`
	LeaderRotation            Options_Rotation `` /* 144-byte string literal not displayed */
	DecisionsPerLeader        uint64           `protobuf:"varint,18,opt,name=decisions_per_leader,json=decisionsPerLeader,proto3" json:"decisions_per_leader,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) Descriptor() ([]byte, []int)

func (*Options) GetCollectTimeout

func (m *Options) GetCollectTimeout() string

func (*Options) GetDecisionsPerLeader

func (m *Options) GetDecisionsPerLeader() uint64

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) GetLeaderRotation

func (m *Options) GetLeaderRotation() Options_Rotation

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) GetRequestMaxBytes

func (m *Options) GetRequestMaxBytes() uint64

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

type Options_Rotation

type Options_Rotation int32
const (
	Options_ROTATION_UNSPECIFIED Options_Rotation = 0
	Options_ROTATION_OFF         Options_Rotation = 1
	Options_ROTATION_ON          Options_Rotation = 2
)

func (Options_Rotation) EnumDescriptor

func (Options_Rotation) EnumDescriptor() ([]byte, []int)

func (Options_Rotation) String

func (x Options_Rotation) String() string

Jump to

Keyboard shortcuts

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