Documentation ¶
Overview ¶
Package discovery provides service advertisement and peer discovery interfaces for dep2p.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advertiser ¶
type Advertiser interface { // Advertise advertises a service Advertise(ctx context.Context, ns string, opts ...Option) (time.Duration, error) }
Advertiser is an interface for advertising services
type Discoverer ¶
type Discoverer interface { // FindPeers discovers peers providing a service FindPeers(ctx context.Context, ns string, opts ...Option) (<-chan peer.AddrInfo, error) }
Discoverer is an interface for peer discovery
type Discovery ¶
type Discovery interface { Advertiser Discoverer }
Discovery is an interface that combines service advertisement and peer discovery
type Option ¶
DiscoveryOpt is a single discovery option.
Click to show internal directories.
Click to hide internal directories.