Documentation ¶
Index ¶
- func AddrBookTest(t *testing.T, factory AddrBookFactory)
- func AddressProducer(ctx context.Context, b *testing.B, addrs chan *logpair, addrsPerPeer int)
- func AssertAddressesEqual(t *testing.T, exp, act []ma.Multiaddr)
- func BenchmarkHeadBook(b *testing.B, factory HeadBookFactory)
- func BenchmarkKeyBook(b *testing.B, factory KeyBookFactory)
- func BenchmarkLogstore(b *testing.B, factory LogstoreFactory, variant string)
- func GenerateAddrs(count int) []ma.Multiaddr
- func GeneratePeerIDs(count int) []peer.ID
- func HeadBookTest(t *testing.T, factory HeadBookFactory)
- func KeyBookTest(t *testing.T, factory KeyBookFactory)
- func LogstoreTest(t *testing.T, factory LogstoreFactory)
- func MetadataBookTest(t *testing.T, factory MetadataBookFactory)
- func Multiaddr(m string) ma.Multiaddr
- func RandomPeer(b *testing.B, addrCount int) *logpair
- func TestLogstoreManaged(ls core.Logstore) func(t *testing.T)
- type AddrBookFactory
- type HeadBookFactory
- type KeyBookFactory
- type LogstoreFactory
- type MetadataBookFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrBookTest ¶
func AddrBookTest(t *testing.T, factory AddrBookFactory)
func AddressProducer ¶
func BenchmarkHeadBook ¶
func BenchmarkHeadBook(b *testing.B, factory HeadBookFactory)
func BenchmarkKeyBook ¶
func BenchmarkKeyBook(b *testing.B, factory KeyBookFactory)
func BenchmarkLogstore ¶
func BenchmarkLogstore(b *testing.B, factory LogstoreFactory, variant string)
func GenerateAddrs ¶
func GeneratePeerIDs ¶
func HeadBookTest ¶
func HeadBookTest(t *testing.T, factory HeadBookFactory)
func KeyBookTest ¶
func KeyBookTest(t *testing.T, factory KeyBookFactory)
func LogstoreTest ¶
func LogstoreTest(t *testing.T, factory LogstoreFactory)
func MetadataBookTest ¶
func MetadataBookTest(t *testing.T, factory MetadataBookFactory)
func RandomPeer ¶
Types ¶
type AddrBookFactory ¶
type HeadBookFactory ¶
type KeyBookFactory ¶
type LogstoreFactory ¶
type MetadataBookFactory ¶
type MetadataBookFactory func() (core.ThreadMetadata, func())
Click to show internal directories.
Click to hide internal directories.