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 ¶
ExtensionDataTransferData is the extension data for the graphsync extension.
func (ExtensionDataTransferData) GetChannelID ¶
func (e ExtensionDataTransferData) GetChannelID() datatransfer.ChannelID
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
Click to show internal directories.
Click to hide internal directories.