Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func NewLocal ¶
func NewLocal(ds dtypes.MetadataDS) *Local
func (*Local) AddPeer ¶
func (l *Local) AddPeer(cid cid.Cid, peer RetrievalPeer) error
func (*Local) GetPeers ¶
func (l *Local) GetPeers(data cid.Cid) ([]RetrievalPeer, error)
type PeerResolver ¶
type PeerResolver interface {
GetPeers(data cid.Cid) ([]RetrievalPeer, error) // TODO: channel
}
func Multi ¶
func Multi(r PeerResolver) PeerResolver
Click to show internal directories.
Click to hide internal directories.