Versions in this module Expand all Collapse all v0 v0.0.7 Sep 22, 2021 Changes in this version + const DefaultFindingHeartbeat + const DefaultMaxQuerySize + const DefaultQuerySize + var ErrFinding = errors.New("there is already a finding task running, try it again later") + func WithQuerySize(size int) discovery.Option + func WithTimeout(timeout time.Duration) discovery.Option + type Option func(*ProtocolBasedDiscovery) error + func WithDefaultQueryTimeout(timeout time.Duration) Option + func WithFindingTickerInterval(interval time.Duration) Option + func WithLogger(logger api.Logger) Option + func WithMaxQuerySize(max int) Option + type ProtocolBasedDiscovery struct + func NewProtocolBasedDiscovery(host host.Host, opts ...Option) (*ProtocolBasedDiscovery, error) + func (d *ProtocolBasedDiscovery) Announce(_ context.Context, serviceName string, _ ...discovery.Option) error + func (d *ProtocolBasedDiscovery) FindPeers(ctx context.Context, serviceName string, opts ...discovery.Option) (<-chan ma.Multiaddr, error)