Documentation ¶
Index ¶
- func AdFromLink(t *testing.T, adLink datamodel.Link, lsys ipld.LinkSystem) *schema.Advertisement
- func AllAdLinks(t *testing.T, head datamodel.Link, lsys ipld.LinkSystem) []datamodel.Link
- func AllAds(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []*schema.Advertisement
- func AllMultihashesFromAd(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
- func AllMultihashesFromAdChain(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
- func AllMultihashesFromAdChainDepth(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem, entriesDepth int) []multihash.Multihash
- func AllMultihashesFromAdLink(t *testing.T, adLink datamodel.Link, lsys ipld.LinkSystem) []multihash.Multihash
- type EntryBuilder
- type RandomAdBuilder
- type RandomEntryChunkBuilder
- type RandomHamtEntryBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdFromLink ¶ added in v0.3.3
func AllAdLinks ¶ added in v0.3.5
AllAdLinks returns a list of all ad cids for a given chain. Latest last
func AllAds ¶
func AllAds(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []*schema.Advertisement
func AllMultihashesFromAd ¶
func AllMultihashesFromAd(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
func AllMultihashesFromAdChain ¶ added in v0.3.8
func AllMultihashesFromAdChain(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
func AllMultihashesFromAdChainDepth ¶ added in v0.3.8
func AllMultihashesFromAdChainDepth(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem, entriesDepth int) []multihash.Multihash
Types ¶
type EntryBuilder ¶ added in v0.4.18
type RandomAdBuilder ¶
type RandomAdBuilder struct { EntryBuilders []EntryBuilder Seed int64 AddRmWithNoEntries bool }
func (RandomAdBuilder) BuildWithFakeSig ¶ added in v0.3.3
type RandomEntryChunkBuilder ¶
Click to show internal directories.
Click to hide internal directories.