proto

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (m *BftMessage) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Signature) GetId

func (m *Signature) GetId() uint64

func (*Signature) GetMsg

func (m *Signature) GetMsg() []byte

func (*Signature) GetValue

func (m *Signature) GetValue() []byte

func (*Signature) Marshal

func (m *Signature) Marshal() (dAtA []byte, err error)

func (*Signature) MarshalTo

func (m *Signature) MarshalTo(dAtA []byte) (int, error)

func (*Signature) MarshalToSizedBuffer

func (m *Signature) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) Size

func (m *Signature) Size() (n int)

func (*Signature) String

func (m *Signature) String() string

func (*Signature) Unmarshal

func (m *Signature) Unmarshal(dAtA []byte) error

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

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

func (*Signature) XXX_Merge

func (m *Signature) XXX_Merge(src proto.Message)

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

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

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

func (m *Signatures) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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