Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetCompleteRequestList() bool
- func (x *Message) GetData() []*Message_Block
- func (x *Message) GetRequests() []*Message_Request
- func (x *Message) GetResponses() []*Message_Response
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Block
- func (*Message_Block) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Block) GetData() []byte
- func (x *Message_Block) GetPrefix() []byte
- func (*Message_Block) ProtoMessage()
- func (x *Message_Block) ProtoReflect() protoreflect.Message
- func (x *Message_Block) Reset()
- func (x *Message_Block) String() string
- type Message_Request
- func (*Message_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Request) GetCancel() bool
- func (x *Message_Request) GetExtensions() map[string][]byte
- func (x *Message_Request) GetId() int32
- func (x *Message_Request) GetPriority() int32
- func (x *Message_Request) GetRoot() []byte
- func (x *Message_Request) GetSelector() []byte
- func (x *Message_Request) GetUpdate() bool
- func (*Message_Request) ProtoMessage()
- func (x *Message_Request) ProtoReflect() protoreflect.Message
- func (x *Message_Request) Reset()
- func (x *Message_Request) String() string
- type Message_Response
- func (*Message_Response) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Response) GetExtensions() map[string][]byte
- func (x *Message_Response) GetId() int32
- func (x *Message_Response) GetStatus() int32
- func (*Message_Response) ProtoMessage()
- func (x *Message_Response) ProtoReflect() protoreflect.Message
- func (x *Message_Response) Reset()
- func (x *Message_Response) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // the actual data included in this message CompleteRequestList bool `protobuf:"varint,1,opt,name=completeRequestList,proto3" json:"completeRequestList,omitempty"` // This request list includes *all* requests, replacing outstanding requests. Requests []*Message_Request `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` // The list of requests. Responses []*Message_Response `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"` // The list of responses. Data []*Message_Block `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` // Blocks related to the responses // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetCompleteRequestList ¶
func (*Message) GetData ¶
func (x *Message) GetData() []*Message_Block
func (*Message) GetRequests ¶
func (x *Message) GetRequests() []*Message_Request
func (*Message) GetResponses ¶
func (x *Message) GetResponses() []*Message_Response
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.3.1
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Block ¶
type Message_Block struct { Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` // CID prefix (cid version, multicodec and multihash prefix (type + length) Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Message_Block) Descriptor
deprecated
func (*Message_Block) Descriptor() ([]byte, []int)
Deprecated: Use Message_Block.ProtoReflect.Descriptor instead.
func (*Message_Block) GetData ¶
func (x *Message_Block) GetData() []byte
func (*Message_Block) GetPrefix ¶
func (x *Message_Block) GetPrefix() []byte
func (*Message_Block) ProtoMessage ¶
func (*Message_Block) ProtoMessage()
func (*Message_Block) ProtoReflect ¶ added in v0.3.1
func (x *Message_Block) ProtoReflect() protoreflect.Message
func (*Message_Block) Reset ¶
func (x *Message_Block) Reset()
func (*Message_Block) String ¶
func (x *Message_Block) String() string
type Message_Request ¶
type Message_Request struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // unique id set on the requester side Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` // a CID for the root node in the query Selector []byte `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"` // ipld selector to retrieve Extensions map[string][]byte `` // aux information. useful for other protocols /* 161-byte string literal not displayed */ Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` // the priority (normalized). default to 1 Cancel bool `protobuf:"varint,6,opt,name=cancel,proto3" json:"cancel,omitempty"` // whether this cancels a request Update bool `protobuf:"varint,7,opt,name=update,proto3" json:"update,omitempty"` // whether this requests resumes a previous request // contains filtered or unexported fields }
func (*Message_Request) Descriptor
deprecated
func (*Message_Request) Descriptor() ([]byte, []int)
Deprecated: Use Message_Request.ProtoReflect.Descriptor instead.
func (*Message_Request) GetCancel ¶
func (x *Message_Request) GetCancel() bool
func (*Message_Request) GetExtensions ¶ added in v0.0.4
func (x *Message_Request) GetExtensions() map[string][]byte
func (*Message_Request) GetId ¶
func (x *Message_Request) GetId() int32
func (*Message_Request) GetPriority ¶
func (x *Message_Request) GetPriority() int32
func (*Message_Request) GetRoot ¶
func (x *Message_Request) GetRoot() []byte
func (*Message_Request) GetSelector ¶
func (x *Message_Request) GetSelector() []byte
func (*Message_Request) GetUpdate ¶ added in v0.1.0
func (x *Message_Request) GetUpdate() bool
func (*Message_Request) ProtoMessage ¶
func (*Message_Request) ProtoMessage()
func (*Message_Request) ProtoReflect ¶ added in v0.3.1
func (x *Message_Request) ProtoReflect() protoreflect.Message
func (*Message_Request) Reset ¶
func (x *Message_Request) Reset()
func (*Message_Request) String ¶
func (x *Message_Request) String() string
type Message_Response ¶
type Message_Response struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // the request id Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // a status code. Extensions map[string][]byte `` // additional data /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Message_Response) Descriptor
deprecated
func (*Message_Response) Descriptor() ([]byte, []int)
Deprecated: Use Message_Response.ProtoReflect.Descriptor instead.
func (*Message_Response) GetExtensions ¶ added in v0.0.4
func (x *Message_Response) GetExtensions() map[string][]byte
func (*Message_Response) GetId ¶
func (x *Message_Response) GetId() int32
func (*Message_Response) GetStatus ¶
func (x *Message_Response) GetStatus() int32
func (*Message_Response) ProtoMessage ¶
func (*Message_Response) ProtoMessage()
func (*Message_Response) ProtoReflect ¶ added in v0.3.1
func (x *Message_Response) ProtoReflect() protoreflect.Message
func (*Message_Response) Reset ¶
func (x *Message_Response) Reset()
func (*Message_Response) String ¶
func (x *Message_Response) String() string
Click to show internal directories.
Click to hide internal directories.