Documentation
¶
Index ¶
- func GenRandomIndexAndAdv(t *testing.T, lsys ipld.LinkSystem) (schema.Advertisement, schema.Link_Advertisement)
- func MkLinkSystem(ds datastore.Batching) ipld.LinkSystem
- func RandomCids(n int) ([]cid.Cid, error)
- func RandomMultihashes(n int) ([]mh.Multihash, error)
- func ToCallback(mhs []mh.Multihash) provider.Callback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomIndexAndAdv ¶
func GenRandomIndexAndAdv(t *testing.T, lsys ipld.LinkSystem) (schema.Advertisement, schema.Link_Advertisement)
func MkLinkSystem ¶
func MkLinkSystem(ds datastore.Batching) ipld.LinkSystem
func RandomCids ¶
func ToCallback ¶
ToCallback simply returns the list of multihashes for testing purposes. A more complex callback could read from the CID index and return the list of multihashes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.