Versions in this module Expand all Collapse all v0 v0.29.0 Jul 29, 2023 Changes in this version + type MockDiscoveryClient struct + func NewDiscoveryClient(h host.Host, server *MockDiscoveryServer) *MockDiscoveryClient + func (d *MockDiscoveryClient) Advertise(ctx context.Context, ns string, opts ...discovery.Option) (time.Duration, error) + func (d *MockDiscoveryClient) FindPeers(ctx context.Context, ns string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) + type MockDiscoveryServer struct + func NewDiscoveryServer(clock clock) *MockDiscoveryServer + func (s *MockDiscoveryServer) Advertise(ns string, info peer.AddrInfo, ttl time.Duration) (time.Duration, error) + func (s *MockDiscoveryServer) FindPeers(ns string, limit int) (<-chan peer.AddrInfo, error)