Documentation
¶
Index ¶
- func FetchBlock(ctx context.Context, exchange graphsync.GraphExchange, ipfspeer *peer.AddrInfo, ...) error
- func NewAgent(ctx context.Context, gsynchost host.Host, router string) gsync.GraphExchange
- func NewEdge(ctx context.Context, gsynchost host.Host, router string) string
- func NewPeer(ctx context.Context, addr string) host.Host
- func NewRouter(ctx context.Context, gsynchost host.Host, s anconsync.Storage, peerhost string) (gsync.GraphExchange, *peer.AddrInfo)
- func PrintProgress(ctx context.Context, pgChan <-chan gsync.ResponseProgress)
- func PushBlock(ctx context.Context, exchange graphsync.GraphExchange, ipfspeer *peer.AddrInfo, ...) error
- func ReadCAR() ([]cid.Cid, blocks.Block, datamodel.Node, error)
- func VerifyHasErrors(ctx context.Context, errChan <-chan error) error
- type ReceivedMessage
- type Receiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchBlock ¶
func PrintProgress ¶
func PrintProgress(ctx context.Context, pgChan <-chan gsync.ResponseProgress)
VerifyHasErrors verifies that at least one error was sent over a channel
Types ¶
type ReceivedMessage ¶
type ReceivedMessage struct {
Message gsmsg.GraphSyncMessage
Sender peer.ID
}
type Receiver ¶
type Receiver struct {
MessageReceived chan ReceivedMessage
}
Receiver is an interface for receiving messages from the GraphSyncNetwork.
func (*Receiver) Disconnected ¶
func (*Receiver) ReceiveMessage ¶
Click to show internal directories.
Click to hide internal directories.