Documentation ¶
Overview ¶
Package bitswap_message_pb is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Message
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Wantlist *Message_Wantlist `protobuf:"bytes,1,opt,name=wantlist" json:"wantlist,omitempty"` Blocks [][]byte `protobuf:"bytes,2,rep,name=blocks" json:"blocks,omitempty"` Payload []*Message_Block `protobuf:"bytes,3,rep,name=payload" json:"payload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Message) GetPayload ¶
func (m *Message) GetPayload() []*Message_Block
func (*Message) GetWantlist ¶
func (m *Message) GetWantlist() *Message_Wantlist
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Message_Block ¶
type Message_Block struct { Prefix []byte `protobuf:"bytes,1,opt,name=prefix" json:"prefix,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Message_Block) GetData ¶
func (m *Message_Block) GetData() []byte
func (*Message_Block) GetPrefix ¶
func (m *Message_Block) GetPrefix() []byte
func (*Message_Block) ProtoMessage ¶
func (*Message_Block) ProtoMessage()
func (*Message_Block) Reset ¶
func (m *Message_Block) Reset()
func (*Message_Block) String ¶
func (m *Message_Block) String() string
type Message_Wantlist ¶
type Message_Wantlist struct { Entries []*Message_Wantlist_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` Full *bool `protobuf:"varint,2,opt,name=full" json:"full,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Message_Wantlist) GetEntries ¶
func (m *Message_Wantlist) GetEntries() []*Message_Wantlist_Entry
func (*Message_Wantlist) GetFull ¶
func (m *Message_Wantlist) GetFull() bool
func (*Message_Wantlist) ProtoMessage ¶
func (*Message_Wantlist) ProtoMessage()
func (*Message_Wantlist) Reset ¶
func (m *Message_Wantlist) Reset()
func (*Message_Wantlist) String ¶
func (m *Message_Wantlist) String() string
type Message_Wantlist_Entry ¶
type Message_Wantlist_Entry struct { Block *string `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` Priority *int32 `protobuf:"varint,2,opt,name=priority" json:"priority,omitempty"` Cancel *bool `protobuf:"varint,3,opt,name=cancel" json:"cancel,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Message_Wantlist_Entry) GetBlock ¶
func (m *Message_Wantlist_Entry) GetBlock() string
func (*Message_Wantlist_Entry) GetCancel ¶
func (m *Message_Wantlist_Entry) GetCancel() bool
func (*Message_Wantlist_Entry) GetPriority ¶
func (m *Message_Wantlist_Entry) GetPriority() int32
func (*Message_Wantlist_Entry) ProtoMessage ¶
func (*Message_Wantlist_Entry) ProtoMessage()
func (*Message_Wantlist_Entry) Reset ¶
func (m *Message_Wantlist_Entry) Reset()
func (*Message_Wantlist_Entry) String ¶
func (m *Message_Wantlist_Entry) String() string
Click to show internal directories.
Click to hide internal directories.