orderer

package
v0.0.0-...-e3e94bd Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConsensusType_State_name = map[int32]string{
		0: "STATE_NORMAL",
		1: "STATE_MAINTENANCE",
	}
	ConsensusType_State_value = map[string]int32{
		"STATE_NORMAL":      0,
		"STATE_MAINTENANCE": 1,
	}
)

Enum value maps for ConsensusType_State.

View Source
var File_configuration_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BatchSize

type BatchSize struct {

	// 现在只需指定信息的数量,将来我们可能会允许以字节为单位指定信息的大小
	MaxMessageCount uint32 `protobuf:"varint,1,opt,name=max_message_count,json=maxMessageCount,proto3" json:"max_message_count,omitempty"`
	// 批次中序列化报文的字节数不能超过此值。
	AbsoluteMaxBytes uint32 `protobuf:"varint,2,opt,name=absolute_max_bytes,json=absoluteMaxBytes,proto3" json:"absolute_max_bytes,omitempty"`
	// 批次中序列化报文的字节数不应超过此值。
	PreferredMaxBytes uint32 `protobuf:"varint,3,opt,name=preferred_max_bytes,json=preferredMaxBytes,proto3" json:"preferred_max_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchSize) Descriptor deprecated

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

Deprecated: Use BatchSize.ProtoReflect.Descriptor instead.

func (*BatchSize) GetAbsoluteMaxBytes

func (x *BatchSize) GetAbsoluteMaxBytes() uint32

func (*BatchSize) GetMaxMessageCount

func (x *BatchSize) GetMaxMessageCount() uint32

func (*BatchSize) GetPreferredMaxBytes

func (x *BatchSize) GetPreferredMaxBytes() uint32

func (*BatchSize) ProtoMessage

func (*BatchSize) ProtoMessage()

func (*BatchSize) ProtoReflect

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

func (*BatchSize) Reset

func (x *BatchSize) Reset()

func (*BatchSize) String

func (x *BatchSize) String() string

type ConsensusType

type ConsensusType struct {
	Type     string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// 该状态会发出信号,让排序服务进入维护模式,通常是为了进行共识型迁移。
	State ConsensusType_State `protobuf:"varint,3,opt,name=state,proto3,enum=orderer.ConsensusType_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsensusType) Descriptor deprecated

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

Deprecated: Use ConsensusType.ProtoReflect.Descriptor instead.

func (*ConsensusType) GetMetadata

func (x *ConsensusType) GetMetadata() []byte

func (*ConsensusType) GetState

func (x *ConsensusType) GetState() ConsensusType_State

func (*ConsensusType) GetType

func (x *ConsensusType) GetType() string

func (*ConsensusType) ProtoMessage

func (*ConsensusType) ProtoMessage()

func (*ConsensusType) ProtoReflect

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

func (*ConsensusType) Reset

func (x *ConsensusType) Reset()

func (*ConsensusType) String

func (x *ConsensusType) String() string

type ConsensusType_State

type ConsensusType_State int32

State 定义了订购方的运行模式,通常用于共识型迁移。正常(NORMAL)是指正常运行时, 共识类型迁移不会也不能进行。维护(MAINTENANCE)是指可以更改共识类型。

const (
	ConsensusType_STATE_NORMAL      ConsensusType_State = 0
	ConsensusType_STATE_MAINTENANCE ConsensusType_State = 1
)

func (ConsensusType_State) Descriptor

func (ConsensusType_State) Enum

func (ConsensusType_State) EnumDescriptor deprecated

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

Deprecated: Use ConsensusType_State.Descriptor instead.

func (ConsensusType_State) Number

func (ConsensusType_State) String

func (x ConsensusType_State) String() string

func (ConsensusType_State) Type

Jump to

Keyboard shortcuts

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