util

package
v0.0.0-...-297cbd2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Advertise(ctx context.Context, a discovery.Advertiser, ns string, opts ...discovery.Option)

Advertise is a utility function that persistently advertises a service through an Advertiser.

func FindPeers

func FindPeers(ctx context.Context, d discovery.Discoverer, ns string, opts ...discovery.Option) ([]peer.AddrInfo, error)

FindPeers is a utility function that synchronously collects peers from a Discoverer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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