type github.com/libp2p/go-libp2p/core/host.Host (interface)
Method Implmentations
Addrs() []ma.Multiaddr
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.Addrs
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.Addrs
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.Addrs
Close() error
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.Close
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.Close
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.Close
ConnManager() connmgr.ConnManager
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.ConnManager
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.ConnManager
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.ConnManager
Connect(ctx context.Context, pi peer.AddrInfo) error
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.Connect
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.Connect
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.Connect
EventBus() event.Bus
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.EventBus
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.EventBus
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.EventBus
ID() peer.ID
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.ID
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.ID
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.ID
Mux() protocol.Switch
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.Mux
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.Mux
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.Mux
Network() network.Network
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.Network
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.Network
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.Network
NewStream(ctx context.Context, p peer.ID, pids ...protocol.ID) (network.Stream, error)
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.NewStream
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.NewStream
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.NewStream
Peerstore() peerstore.Peerstore
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.Peerstore
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.Peerstore
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.Peerstore
RemoveStreamHandler(pid protocol.ID)
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.RemoveStreamHandler
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.RemoveStreamHandler
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.RemoveStreamHandler
SetStreamHandler(pid protocol.ID, handler network.StreamHandler)
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.SetStreamHandler
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.SetStreamHandler
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.SetStreamHandler
SetStreamHandlerMatch(protocol.ID, func(protocol.ID) bool, network.StreamHandler)
*github.com/libp2p/go-libp2p/p2p/host/basic.BasicHost.SetStreamHandlerMatch
*github.com/libp2p/go-libp2p/p2p/host/blank.BlankHost.SetStreamHandlerMatch
*github.com/libp2p/go-libp2p/p2p/host/routed.RoutedHost.SetStreamHandlerMatch
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |