Documentation ¶
Index ¶
- Variables
- type HeaderRequest
- func (*HeaderRequest) Descriptor() ([]byte, []int)
- func (m *HeaderRequest) GetAmount() uint64
- func (m *HeaderRequest) GetData() isHeaderRequest_Data
- func (m *HeaderRequest) GetHash() []byte
- func (m *HeaderRequest) GetOrigin() uint64
- func (m *HeaderRequest) Marshal() (dAtA []byte, err error)
- func (m *HeaderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeaderRequest) ProtoMessage()
- func (m *HeaderRequest) Reset()
- func (m *HeaderRequest) Size() (n int)
- func (m *HeaderRequest) String() string
- func (m *HeaderRequest) Unmarshal(dAtA []byte) error
- func (m *HeaderRequest) XXX_DiscardUnknown()
- func (m *HeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderRequest) XXX_Merge(src proto.Message)
- func (*HeaderRequest) XXX_OneofWrappers() []interface{}
- func (m *HeaderRequest) XXX_Size() int
- func (m *HeaderRequest) XXX_Unmarshal(b []byte) error
- type HeaderRequest_Hash
- type HeaderRequest_Origin
- type HeaderResponse
- func (*HeaderResponse) Descriptor() ([]byte, []int)
- func (m *HeaderResponse) GetBody() []byte
- func (m *HeaderResponse) GetStatusCode() StatusCode
- func (m *HeaderResponse) Marshal() (dAtA []byte, err error)
- func (m *HeaderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeaderResponse) ProtoMessage()
- func (m *HeaderResponse) Reset()
- func (m *HeaderResponse) Size() (n int)
- func (m *HeaderResponse) String() string
- func (m *HeaderResponse) Unmarshal(dAtA []byte) error
- func (m *HeaderResponse) XXX_DiscardUnknown()
- func (m *HeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderResponse) XXX_Merge(src proto.Message)
- func (m *HeaderResponse) XXX_Size() int
- func (m *HeaderResponse) XXX_Unmarshal(b []byte) error
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthHeaderRequest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHeaderRequest = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupHeaderRequest = fmt.Errorf("proto: unexpected end of group") )
View Source
var StatusCode_name = map[int32]string{
0: "INVALID",
1: "OK",
2: "NOT_FOUND",
}
View Source
var StatusCode_value = map[string]int32{
"INVALID": 0,
"OK": 1,
"NOT_FOUND": 2,
}
Functions ¶
This section is empty.
Types ¶
type HeaderRequest ¶
type HeaderRequest struct { // Types that are valid to be assigned to Data: // *HeaderRequest_Origin // *HeaderRequest_Hash Data isHeaderRequest_Data `protobuf_oneof:"data"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*HeaderRequest) Descriptor ¶
func (*HeaderRequest) Descriptor() ([]byte, []int)
func (*HeaderRequest) GetAmount ¶
func (m *HeaderRequest) GetAmount() uint64
func (*HeaderRequest) GetData ¶
func (m *HeaderRequest) GetData() isHeaderRequest_Data
func (*HeaderRequest) GetHash ¶
func (m *HeaderRequest) GetHash() []byte
func (*HeaderRequest) GetOrigin ¶
func (m *HeaderRequest) GetOrigin() uint64
func (*HeaderRequest) Marshal ¶
func (m *HeaderRequest) Marshal() (dAtA []byte, err error)
func (*HeaderRequest) MarshalToSizedBuffer ¶
func (m *HeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeaderRequest) ProtoMessage ¶
func (*HeaderRequest) ProtoMessage()
func (*HeaderRequest) Reset ¶
func (m *HeaderRequest) Reset()
func (*HeaderRequest) Size ¶
func (m *HeaderRequest) Size() (n int)
func (*HeaderRequest) String ¶
func (m *HeaderRequest) String() string
func (*HeaderRequest) Unmarshal ¶
func (m *HeaderRequest) Unmarshal(dAtA []byte) error
func (*HeaderRequest) XXX_DiscardUnknown ¶
func (m *HeaderRequest) XXX_DiscardUnknown()
func (*HeaderRequest) XXX_Marshal ¶
func (m *HeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderRequest) XXX_Merge ¶
func (m *HeaderRequest) XXX_Merge(src proto.Message)
func (*HeaderRequest) XXX_OneofWrappers ¶
func (*HeaderRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*HeaderRequest) XXX_Size ¶
func (m *HeaderRequest) XXX_Size() int
func (*HeaderRequest) XXX_Unmarshal ¶
func (m *HeaderRequest) XXX_Unmarshal(b []byte) error
type HeaderRequest_Hash ¶
type HeaderRequest_Hash struct {
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
}
func (*HeaderRequest_Hash) MarshalTo ¶
func (m *HeaderRequest_Hash) MarshalTo(dAtA []byte) (int, error)
func (*HeaderRequest_Hash) MarshalToSizedBuffer ¶
func (m *HeaderRequest_Hash) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeaderRequest_Hash) Size ¶
func (m *HeaderRequest_Hash) Size() (n int)
type HeaderRequest_Origin ¶
type HeaderRequest_Origin struct {
Origin uint64 `protobuf:"varint,1,opt,name=origin,proto3,oneof" json:"origin,omitempty"`
}
func (*HeaderRequest_Origin) MarshalTo ¶
func (m *HeaderRequest_Origin) MarshalTo(dAtA []byte) (int, error)
func (*HeaderRequest_Origin) MarshalToSizedBuffer ¶
func (m *HeaderRequest_Origin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeaderRequest_Origin) Size ¶
func (m *HeaderRequest_Origin) Size() (n int)
type HeaderResponse ¶
type HeaderResponse 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 (*HeaderResponse) Descriptor ¶
func (*HeaderResponse) Descriptor() ([]byte, []int)
func (*HeaderResponse) GetBody ¶
func (m *HeaderResponse) GetBody() []byte
func (*HeaderResponse) GetStatusCode ¶
func (m *HeaderResponse) GetStatusCode() StatusCode
func (*HeaderResponse) Marshal ¶
func (m *HeaderResponse) Marshal() (dAtA []byte, err error)
func (*HeaderResponse) MarshalToSizedBuffer ¶
func (m *HeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeaderResponse) ProtoMessage ¶
func (*HeaderResponse) ProtoMessage()
func (*HeaderResponse) Reset ¶
func (m *HeaderResponse) Reset()
func (*HeaderResponse) Size ¶
func (m *HeaderResponse) Size() (n int)
func (*HeaderResponse) String ¶
func (m *HeaderResponse) String() string
func (*HeaderResponse) Unmarshal ¶
func (m *HeaderResponse) Unmarshal(dAtA []byte) error
func (*HeaderResponse) XXX_DiscardUnknown ¶
func (m *HeaderResponse) XXX_DiscardUnknown()
func (*HeaderResponse) XXX_Marshal ¶
func (m *HeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderResponse) XXX_Merge ¶
func (m *HeaderResponse) XXX_Merge(src proto.Message)
func (*HeaderResponse) XXX_Size ¶
func (m *HeaderResponse) XXX_Size() int
func (*HeaderResponse) XXX_Unmarshal ¶
func (m *HeaderResponse) XXX_Unmarshal(b []byte) error
type StatusCode ¶
type StatusCode int32
const ( StatusCode_INVALID StatusCode = 0 StatusCode_OK StatusCode = 1 StatusCode_NOT_FOUND StatusCode = 2 )
func (StatusCode) EnumDescriptor ¶
func (StatusCode) EnumDescriptor() ([]byte, []int)
func (StatusCode) String ¶
func (x StatusCode) String() string
Click to show internal directories.
Click to hide internal directories.