Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitSwapMessage ¶
type BitSwapMessage interface { // Wantlist returns a slice of unique keys that represent data wanted by // the sender. Wantlist() []u.Key // Blocks returns a slice of unique blocks Blocks() []blocks.Block // AddWanted adds the key to the Wantlist. // // Insertion order determines priority. That is, earlier insertions are // deemed higher priority than keys inserted later. // // t = 0, msg.AddWanted(A) // t = 1, msg.AddWanted(B) // // implies Priority(A) > Priority(B) AddWanted(u.Key) AddBlock(blocks.Block) Exportable }
func FromNet ¶
func FromNet(nmsg netmsg.NetMessage) (BitSwapMessage, error)
func New ¶
func New() BitSwapMessage
type Exportable ¶
Click to show internal directories.
Click to hide internal directories.