Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrNoPeersToAsk = errors.Error("no peers to ask")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer struct {
// contains filtered or unexported fields
}
Discoverer hyperspace
func NewDiscoverer ¶
func NewDiscoverer( ctx context.Context, ps discovery.PeerStorer, exc exchange.Exchange, local *peer.LocalPeer, bootstrapPeers []*peer.Peer, ) (*Discoverer, error)
NewDiscoverer returns a new hyperspace discoverer
func (*Discoverer) Lookup ¶ added in v0.5.0
func (r *Discoverer) Lookup( ctx context.Context, opts ...peer.LookupOption, ) (<-chan *peer.Peer, error)
Lookup finds and returns peer infos from a fingerprint
Click to show internal directories.
Click to hide internal directories.