discovery

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 2 Imported by: 74

Documentation

Overview

Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/discovery.

Package discovery provides service advertisement and peer discovery interfaces for libp2p.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advertiser

type Advertiser = discovery.Advertiser

Advertiser is an interface for advertising services Deprecated: use github.com/libp2p/go-libp2p/core/discovery.Advertiser instead

type Discoverer

type Discoverer = discovery.Discoverer

Discoverer is an interface for peer discovery Deprecated: use github.com/libp2p/go-libp2p/core/discovery.Discoverer instead

type Discovery

type Discovery = discovery.Discovery

Discovery is an interface that combines service advertisement and peer discovery Deprecated: use github.com/libp2p/go-libp2p/core/discovery.Discovery instead

type Option

type Option = discovery.Option

DiscoveryOpt is a single discovery option. Deprecated: use github.com/libp2p/go-libp2p/core/discovery.Option instead

func Limit

func Limit(limit int) Option

Limit is an option that provides an upper bound on the peer count for discovery Deprecated: use github.com/libp2p/go-libp2p/core/discovery.Limit instead

func TTL

func TTL(ttl time.Duration) Option

TTL is an option that provides a hint for the duration of an advertisement Deprecated: use github.com/libp2p/go-libp2p/core/discovery.TTL instead

type Options

type Options = discovery.Options

DiscoveryOpts is a set of discovery options. Deprecated: use github.com/libp2p/go-libp2p/core/discovery.Options instead

Jump to

Keyboard shortcuts

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