Documentation
¶
Overview ¶
Package zbftpb is a generated protocol buffer package.
It is generated from these files:
zbft.proto
It has these top-level messages:
Message
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetBlock() *bcpb.Block
- func (m *Message) GetFrom() bcpb.PublicKey
- func (m *Message) GetTxs() []*bcpb.Tx
- func (m *Message) GetType() Message_Type
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- type Message_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthZbft = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowZbft = fmt.Errorf("proto: integer overflow") )
View Source
var Message_Type_name = map[int32]string{
0: "NONE",
1: "BOOTSTRAP",
3: "PROPOSAL",
4: "SIGNATURE",
5: "PERSIST",
}
View Source
var Message_Type_value = map[string]int32{
"NONE": 0,
"BOOTSTRAP": 1,
"PROPOSAL": 3,
"SIGNATURE": 4,
"PERSIST": 5,
}
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // Type of message Type Message_Type `protobuf:"varint,1,opt,name=type,proto3,enum=zbftpb.Message_Type" json:"type,omitempty"` // Block in question Block *bcpb.Block `protobuf:"bytes,2,opt,name=block" json:"block,omitempty"` // Entity who sent the message where applicable From bcpb.PublicKey `protobuf:"bytes,3,opt,name=from,proto3,casttype=bcpb.PublicKey" json:"from,omitempty"` // Tx's part of the block that are in question Txs []*bcpb.Tx `protobuf:"bytes,4,rep,name=txs" json:"txs,omitempty"` }
All fields except type are optional and used based on context
func (*Message) Descriptor ¶
func (*Message) GetType ¶
func (m *Message) GetType() Message_Type
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Message_Type ¶
type Message_Type int32
const ( Message_NONE Message_Type = 0 Message_BOOTSTRAP Message_Type = 1 // PREPARE = 1; // Prepare transaction/s Message_PROPOSAL Message_Type = 3 Message_SIGNATURE Message_Type = 4 Message_PERSIST Message_Type = 5 )
func (Message_Type) EnumDescriptor ¶
func (Message_Type) EnumDescriptor() ([]byte, []int)
func (Message_Type) String ¶
func (x Message_Type) String() string
Click to show internal directories.
Click to hide internal directories.