Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerResolver ¶
type PeerResolver interface {
GetPeers(payloadCID cid.Cid) ([]retrievalmarket.RetrievalPeer, error) // TODO: channel
}
PeerResolver is an interface for looking up providers that may have a piece
type RetrievalPeers ¶
type RetrievalPeers struct {
Peers []retrievalmarket.RetrievalPeer
}
RetrievalPeers is a convenience struct for encoding slices of RetrievalPeer
func (*RetrievalPeers) MarshalCBOR ¶
func (t *RetrievalPeers) MarshalCBOR(w io.Writer) error
func (*RetrievalPeers) UnmarshalCBOR ¶
func (t *RetrievalPeers) UnmarshalCBOR(r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.