graphsyncimpl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExtensionDataTransfer is the identifier for the data transfer extension to graphsync
	ExtensionDataTransfer = graphsync.ExtensionName("fil/data-transfer")
)

Variables

This section is empty.

Functions

func NewGraphSyncDataTransfer

func NewGraphSyncDataTransfer(host host.Host, gs graphsync.GraphExchange, storedCounter *storedcounter.StoredCounter) datatransfer.Manager

NewGraphSyncDataTransfer initializes a new graphsync based data transfer manager

Types

type ExtensionDataTransferData

type ExtensionDataTransferData struct {
	TransferID uint64
	Initiator  peer.ID
	IsPull     bool
}

ExtensionDataTransferData is the extension data for the graphsync extension.

func (ExtensionDataTransferData) GetChannelID

GetChannelID gets the channelID for this extension, given the peers on either side

func (*ExtensionDataTransferData) MarshalCBOR

func (t *ExtensionDataTransferData) MarshalCBOR(w io.Writer) error

func (*ExtensionDataTransferData) UnmarshalCBOR

func (t *ExtensionDataTransferData) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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