proto

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTestdata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTestdata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTestdata = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type TestData

type TestData struct {
	Hash    []byte   `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
	ShardID uint32   `protobuf:"varint,2,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
	Nonce   uint64   `protobuf:"varint,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	Hashes  [][]byte `protobuf:"bytes,4,rep,name=Hashes,proto3" json:"Hashes,omitempty"`
	Message string   `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"`
}

func (*TestData) Descriptor

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

func (*TestData) Equal

func (this *TestData) Equal(that interface{}) bool

func (*TestData) GetHash

func (m *TestData) GetHash() []byte

func (*TestData) GetHashes

func (m *TestData) GetHashes() [][]byte

func (*TestData) GetMessage

func (m *TestData) GetMessage() string

func (*TestData) GetNonce

func (m *TestData) GetNonce() uint64

func (*TestData) GetShardID

func (m *TestData) GetShardID() uint32

func (*TestData) GoString

func (this *TestData) GoString() string

func (*TestData) Marshal

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

func (*TestData) MarshalTo

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

func (*TestData) MarshalToSizedBuffer

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

func (*TestData) ProtoMessage

func (*TestData) ProtoMessage()

func (*TestData) Reset

func (m *TestData) Reset()

func (*TestData) Size

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

func (*TestData) String

func (this *TestData) String() string

func (*TestData) Unmarshal

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

func (*TestData) XXX_DiscardUnknown

func (m *TestData) XXX_DiscardUnknown()

func (*TestData) XXX_Marshal

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

func (*TestData) XXX_Merge

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

func (*TestData) XXX_Size

func (m *TestData) XXX_Size() int

func (*TestData) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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