package routedhost

Import Path
	github.com/libp2p/go-libp2p/p2p/host/routed (on go.dev)

Dependency Relation
	imports 12 packages, and imported by one package

Involved Source Files routed.go
Package-Level Type Names (total 2)
/* sort by: | */
RoutedHost is a p2p Host that includes a routing system. This allows the Host to find the addresses for peers when it does not have them. (*RoutedHost) Addrs() []ma.Multiaddr (*RoutedHost) Close() error (*RoutedHost) ConnManager() connmgr.ConnManager Connect ensures there is a connection between this host and the peer with given peer.ID. See (host.Host).Connect for more information. RoutedHost's Connect differs in that if the host has no addresses for a given peer, it will use its routing system to try to find some. (*RoutedHost) EventBus() event.Bus (*RoutedHost) ID() peer.ID (*RoutedHost) Mux() protocol.Switch (*RoutedHost) Network() network.Network (*RoutedHost) NewStream(ctx context.Context, p peer.ID, pids ...protocol.ID) (network.Stream, error) (*RoutedHost) Peerstore() peerstore.Peerstore (*RoutedHost) RemoveStreamHandler(pid protocol.ID) (*RoutedHost) SetStreamHandler(pid protocol.ID, handler network.StreamHandler) (*RoutedHost) SetStreamHandlerMatch(pid protocol.ID, m func(protocol.ID) bool, handler network.StreamHandler) *RoutedHost : github.com/libp2p/go-libp2p/core/host.Host *RoutedHost : github.com/prometheus/common/expfmt.Closer *RoutedHost : io.Closer func Wrap(h host.Host, r Routing) *RoutedHost
FindPeer searches for a peer with given ID, returns a peer.AddrInfo with relevant addresses. github.com/libp2p/go-libp2p/core/routing.PeerRouting (interface) github.com/libp2p/go-libp2p/core/routing.Routing (interface) Routing : github.com/libp2p/go-libp2p/core/routing.PeerRouting func Wrap(h host.Host, r Routing) *RoutedHost
Package-Level Functions (only one)
Package-Level Constants (only one)
AddressTTL is the expiry time for our addresses. We expire them quickly.