message1_0

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2021 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromNet

func FromNet(r io.Reader) (datatransfer.Message, error)

FromNet can read a network stream to deserialize a GraphSyncMessage

func NewTransferRequest

func NewTransferRequest(bcid *cid.Cid, typ uint64, paus, part, pull bool, stor, vouch *cbg.Deferred,
	vtyp datatransfer.TypeIdentifier, xferId uint64) datatransfer.Request

NewTransferRequest creates a transfer request for the 1_0 Data Transfer Protocol.

func NewTransferResponse

func NewTransferResponse(typ uint64, acpt bool, paus bool, xferId uint64, vRes *cbg.Deferred, vtyp datatransfer.TypeIdentifier) datatransfer.Response

NewTransferRequest creates a transfer response for the 1_0 Data Transfer Protocol.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL