utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

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 RandomCids(n int) ([]cid.Cid, error)

func RandomMultihashes

func RandomMultihashes(n int) ([]mh.Multihash, error)

func ToCallback

func ToCallback(mhs []mh.Multihash) provider.Callback

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.

Jump to

Keyboard shortcuts

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