Documentation ¶
Overview ¶
Package bitswap is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
PBMessage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitSwapMessage ¶
type BitSwapMessage interface { Wantlist() []u.Key Blocks() []blocks.Block AppendWanted(k u.Key) AppendBlock(b blocks.Block) Exportable }
func FromNet ¶
func FromNet(nmsg netmsg.NetMessage) (BitSwapMessage, error)
type Exportable ¶
type PBMessage ¶
type PBMessage struct { Wantlist []string `protobuf:"bytes,1,rep,name=wantlist" json:"wantlist,omitempty"` Blocks [][]byte `protobuf:"bytes,2,rep,name=blocks" json:"blocks,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PBMessage) GetWantlist ¶
func (*PBMessage) ProtoMessage ¶
func (*PBMessage) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.