Documentation ¶
Index ¶
- Variables
- type BftMessage
- func (*BftMessage) Descriptor() ([]byte, []int)
- func (m *BftMessage) GetData() []byte
- func (m *BftMessage) GetFromId() uint64
- func (m *BftMessage) GetType() BftMessage_Type
- func (m *BftMessage) Marshal() (dAtA []byte, err error)
- func (m *BftMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *BftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BftMessage) ProtoMessage()
- func (m *BftMessage) Reset()
- func (m *BftMessage) Size() (n int)
- func (m *BftMessage) String() string
- func (m *BftMessage) Unmarshal(dAtA []byte) error
- func (m *BftMessage) XXX_DiscardUnknown()
- func (m *BftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BftMessage) XXX_Merge(src proto.Message)
- func (m *BftMessage) XXX_Size() int
- func (m *BftMessage) XXX_Unmarshal(b []byte) error
- type BftMessage_Type
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetId() uint64
- func (m *Signature) GetMsg() []byte
- func (m *Signature) GetValue() []byte
- func (m *Signature) Marshal() (dAtA []byte, err error)
- func (m *Signature) MarshalTo(dAtA []byte) (int, error)
- func (m *Signature) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) Size() (n int)
- func (m *Signature) String() string
- func (m *Signature) Unmarshal(dAtA []byte) error
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
- type Signatures
- func (*Signatures) Descriptor() ([]byte, []int)
- func (m *Signatures) GetSignature() []*Signature
- func (m *Signatures) Marshal() (dAtA []byte, err error)
- func (m *Signatures) MarshalTo(dAtA []byte) (int, error)
- func (m *Signatures) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Signatures) ProtoMessage()
- func (m *Signatures) Reset()
- func (m *Signatures) Size() (n int)
- func (m *Signatures) String() string
- func (m *Signatures) Unmarshal(dAtA []byte) error
- func (m *Signatures) XXX_DiscardUnknown()
- func (m *Signatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signatures) XXX_Merge(src proto.Message)
- func (m *Signatures) XXX_Size() int
- func (m *Signatures) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") )
View Source
var BftMessage_Type_name = map[int32]string{
0: "CONSENSUS",
1: "BROADCAST_TX",
}
View Source
var BftMessage_Type_value = map[string]int32{
"CONSENSUS": 0,
"BROADCAST_TX": 1,
}
Functions ¶
This section is empty.
Types ¶
type BftMessage ¶
type BftMessage struct { Type BftMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=proto.BftMessage_Type" json:"type,omitempty"` FromId uint64 `protobuf:"varint,2,opt,name=fromId,proto3" json:"fromId,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*BftMessage) Descriptor ¶
func (*BftMessage) Descriptor() ([]byte, []int)
func (*BftMessage) GetData ¶
func (m *BftMessage) GetData() []byte
func (*BftMessage) GetFromId ¶
func (m *BftMessage) GetFromId() uint64
func (*BftMessage) GetType ¶
func (m *BftMessage) GetType() BftMessage_Type
func (*BftMessage) Marshal ¶
func (m *BftMessage) Marshal() (dAtA []byte, err error)
func (*BftMessage) MarshalToSizedBuffer ¶
func (m *BftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BftMessage) ProtoMessage ¶
func (*BftMessage) ProtoMessage()
func (*BftMessage) Reset ¶
func (m *BftMessage) Reset()
func (*BftMessage) Size ¶
func (m *BftMessage) Size() (n int)
func (*BftMessage) String ¶
func (m *BftMessage) String() string
func (*BftMessage) Unmarshal ¶
func (m *BftMessage) Unmarshal(dAtA []byte) error
func (*BftMessage) XXX_DiscardUnknown ¶
func (m *BftMessage) XXX_DiscardUnknown()
func (*BftMessage) XXX_Marshal ¶
func (m *BftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BftMessage) XXX_Merge ¶
func (m *BftMessage) XXX_Merge(src proto.Message)
func (*BftMessage) XXX_Size ¶
func (m *BftMessage) XXX_Size() int
func (*BftMessage) XXX_Unmarshal ¶
func (m *BftMessage) XXX_Unmarshal(b []byte) error
type BftMessage_Type ¶
type BftMessage_Type int32
const ( BftMessage_CONSENSUS BftMessage_Type = 0 BftMessage_BROADCAST_TX BftMessage_Type = 1 )
func (BftMessage_Type) EnumDescriptor ¶
func (BftMessage_Type) EnumDescriptor() ([]byte, []int)
func (BftMessage_Type) String ¶
func (x BftMessage_Type) String() string
type Signature ¶
type Signature struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*Signature) Descriptor ¶
func (*Signature) MarshalToSizedBuffer ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶
func (*Signature) XXX_Unmarshal ¶
type Signatures ¶
type Signatures struct {
Signature []*Signature `protobuf:"bytes,1,rep,name=signature,proto3" json:"signature,omitempty"`
}
func (*Signatures) Descriptor ¶
func (*Signatures) Descriptor() ([]byte, []int)
func (*Signatures) GetSignature ¶
func (m *Signatures) GetSignature() []*Signature
func (*Signatures) Marshal ¶
func (m *Signatures) Marshal() (dAtA []byte, err error)
func (*Signatures) MarshalToSizedBuffer ¶
func (m *Signatures) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Signatures) ProtoMessage ¶
func (*Signatures) ProtoMessage()
func (*Signatures) Reset ¶
func (m *Signatures) Reset()
func (*Signatures) Size ¶
func (m *Signatures) Size() (n int)
func (*Signatures) String ¶
func (m *Signatures) String() string
func (*Signatures) Unmarshal ¶
func (m *Signatures) Unmarshal(dAtA []byte) error
func (*Signatures) XXX_DiscardUnknown ¶
func (m *Signatures) XXX_DiscardUnknown()
func (*Signatures) XXX_Marshal ¶
func (m *Signatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Signatures) XXX_Merge ¶
func (m *Signatures) XXX_Merge(src proto.Message)
func (*Signatures) XXX_Size ¶
func (m *Signatures) XXX_Size() int
func (*Signatures) XXX_Unmarshal ¶
func (m *Signatures) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.