p2p_pb

package
v0.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthExtendedHeaderRequest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExtendedHeaderRequest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupExtendedHeaderRequest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var StatusCode_name = map[int32]string{
	0: "INVALID",
	1: "OK",
	2: "NOT_FOUND",
	3: "LIMIT_EXCEEDED",
}
View Source
var StatusCode_value = map[string]int32{
	"INVALID":        0,
	"OK":             1,
	"NOT_FOUND":      2,
	"LIMIT_EXCEEDED": 3,
}

Functions

This section is empty.

Types

type ExtendedHeaderRequest

type ExtendedHeaderRequest struct {
	// Types that are valid to be assigned to Data:
	//	*ExtendedHeaderRequest_Origin
	//	*ExtendedHeaderRequest_Hash
	Data   isExtendedHeaderRequest_Data `protobuf_oneof:"data"`
	Amount uint64                       `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*ExtendedHeaderRequest) Descriptor

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

func (*ExtendedHeaderRequest) GetAmount

func (m *ExtendedHeaderRequest) GetAmount() uint64

func (*ExtendedHeaderRequest) GetData added in v0.4.0

func (m *ExtendedHeaderRequest) GetData() isExtendedHeaderRequest_Data

func (*ExtendedHeaderRequest) GetHash

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

func (*ExtendedHeaderRequest) GetOrigin

func (m *ExtendedHeaderRequest) GetOrigin() uint64

func (*ExtendedHeaderRequest) Marshal

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

func (*ExtendedHeaderRequest) MarshalTo

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

func (*ExtendedHeaderRequest) MarshalToSizedBuffer

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

func (*ExtendedHeaderRequest) ProtoMessage

func (*ExtendedHeaderRequest) ProtoMessage()

func (*ExtendedHeaderRequest) Reset

func (m *ExtendedHeaderRequest) Reset()

func (*ExtendedHeaderRequest) Size

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

func (*ExtendedHeaderRequest) String

func (m *ExtendedHeaderRequest) String() string

func (*ExtendedHeaderRequest) Unmarshal

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

func (*ExtendedHeaderRequest) XXX_DiscardUnknown

func (m *ExtendedHeaderRequest) XXX_DiscardUnknown()

func (*ExtendedHeaderRequest) XXX_Marshal

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

func (*ExtendedHeaderRequest) XXX_Merge

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

func (*ExtendedHeaderRequest) XXX_OneofWrappers added in v0.4.0

func (*ExtendedHeaderRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ExtendedHeaderRequest) XXX_Size

func (m *ExtendedHeaderRequest) XXX_Size() int

func (*ExtendedHeaderRequest) XXX_Unmarshal

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

type ExtendedHeaderRequest_Hash added in v0.4.0

type ExtendedHeaderRequest_Hash struct {
	Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
}

func (*ExtendedHeaderRequest_Hash) MarshalTo added in v0.4.0

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

func (*ExtendedHeaderRequest_Hash) MarshalToSizedBuffer added in v0.4.0

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

func (*ExtendedHeaderRequest_Hash) Size added in v0.4.0

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

type ExtendedHeaderRequest_Origin added in v0.4.0

type ExtendedHeaderRequest_Origin struct {
	Origin uint64 `protobuf:"varint,1,opt,name=origin,proto3,oneof" json:"origin,omitempty"`
}

func (*ExtendedHeaderRequest_Origin) MarshalTo added in v0.4.0

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

func (*ExtendedHeaderRequest_Origin) MarshalToSizedBuffer added in v0.4.0

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

func (*ExtendedHeaderRequest_Origin) Size added in v0.4.0

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

type ExtendedHeaderResponse added in v0.4.0

type ExtendedHeaderResponse struct {
	Body       []byte     `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	StatusCode StatusCode `protobuf:"varint,2,opt,name=statusCode,proto3,enum=p2p.pb.StatusCode" json:"statusCode,omitempty"`
}

func (*ExtendedHeaderResponse) Descriptor added in v0.4.0

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

func (*ExtendedHeaderResponse) GetBody added in v0.4.0

func (m *ExtendedHeaderResponse) GetBody() []byte

func (*ExtendedHeaderResponse) GetStatusCode added in v0.4.0

func (m *ExtendedHeaderResponse) GetStatusCode() StatusCode

func (*ExtendedHeaderResponse) Marshal added in v0.4.0

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

func (*ExtendedHeaderResponse) MarshalTo added in v0.4.0

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

func (*ExtendedHeaderResponse) MarshalToSizedBuffer added in v0.4.0

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

func (*ExtendedHeaderResponse) ProtoMessage added in v0.4.0

func (*ExtendedHeaderResponse) ProtoMessage()

func (*ExtendedHeaderResponse) Reset added in v0.4.0

func (m *ExtendedHeaderResponse) Reset()

func (*ExtendedHeaderResponse) Size added in v0.4.0

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

func (*ExtendedHeaderResponse) String added in v0.4.0

func (m *ExtendedHeaderResponse) String() string

func (*ExtendedHeaderResponse) Unmarshal added in v0.4.0

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

func (*ExtendedHeaderResponse) XXX_DiscardUnknown added in v0.4.0

func (m *ExtendedHeaderResponse) XXX_DiscardUnknown()

func (*ExtendedHeaderResponse) XXX_Marshal added in v0.4.0

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

func (*ExtendedHeaderResponse) XXX_Merge added in v0.4.0

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

func (*ExtendedHeaderResponse) XXX_Size added in v0.4.0

func (m *ExtendedHeaderResponse) XXX_Size() int

func (*ExtendedHeaderResponse) XXX_Unmarshal added in v0.4.0

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

type StatusCode added in v0.4.0

type StatusCode int32
const (
	StatusCode_INVALID        StatusCode = 0
	StatusCode_OK             StatusCode = 1
	StatusCode_NOT_FOUND      StatusCode = 2
	StatusCode_LIMIT_EXCEEDED StatusCode = 3
)

func (StatusCode) EnumDescriptor added in v0.4.0

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

func (StatusCode) String added in v0.4.0

func (x StatusCode) String() string

Jump to

Keyboard shortcuts

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