loader

package
v0.0.6-0...-9dfb6b8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapLoader

func WrapLoader(loader ipldbridge.Loader,
	requestID graphsync.RequestID,
	responseSender ResponseSender) ipldbridge.Loader

WrapLoader wraps a given loader with an interceptor that sends loaded blocks out to the network with the given response sender.

Types

type ResponseSender

type ResponseSender interface {
	SendResponse(
		requestID graphsync.RequestID,
		link ipld.Link,
		data []byte,
	)
}

ResponseSender sends responses over the network

Jump to

Keyboard shortcuts

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