typehelpers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type RandomAdBuilder

type RandomAdBuilder struct {
	EntryChunkBuilders []RandomEntryChunkBuilder
	Seed               int64
	AddRmWithNoEntries bool
}

func (RandomAdBuilder) Build

func (b RandomAdBuilder) Build(t *testing.T, lsys ipld.LinkSystem, signingKey crypto.PrivKey) datamodel.Link

type RandomEntryChunkBuilder

type RandomEntryChunkBuilder struct {
	ChunkCount      uint8
	EntriesPerChunk uint8
	EntriesSeed     int64
}

func (RandomEntryChunkBuilder) Build

func (b RandomEntryChunkBuilder) Build(t *testing.T, lsys ipld.LinkSystem) datamodel.Link

Jump to

Keyboard shortcuts

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