Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerRouting ¶
type PeerRouting interface {
FindPeer(ctx context.Context, service string, targetPeerId peer.ID, timeout time.Duration) (peer.ID, error)
}
PeerRouting provides a way to query the net address of the peer in network.
type ProtocolRouting ¶
type ProtocolRouting interface {
FindPeerSupportProtocolsAsync(context.Context, int, ...protocol.ID) <-chan ma.Multiaddr
}
ProtocolRouting provides a way to query the net addresses of the peers who support protocols given.
type Routing ¶
type Routing interface { PeerRouting ProtocolRouting }
Click to show internal directories.
Click to hide internal directories.