2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/host.
|
|
|
|
//
|
2019-05-23 01:31:11 +08:00
|
|
|
// Package host provides the core Host interface for libp2p.
|
|
|
|
//
|
|
|
|
// Host represents a single libp2p node in a peer-to-peer network.
|
|
|
|
package host
|
|
|
|
|
|
|
|
import (
|
2022-08-18 23:54:48 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core/host"
|
2019-05-23 01:31:11 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// Host is an object participating in a p2p network, which
|
|
|
|
// implements protocols or provides services. It handles
|
|
|
|
// requests like a Server, and issues requests like a Client.
|
|
|
|
// It is called Host because it is both Server and Client (and Peer
|
|
|
|
// may be confusing).
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/host.Host instead
|
|
|
|
type Host = host.Host
|
2020-06-05 19:24:56 +08:00
|
|
|
|
|
|
|
// IntrospectableHost is implemented by Host implementations that are
|
|
|
|
// introspectable, that is, that may have introspection capability.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/host.IntrospectableHost instead
|
|
|
|
type IntrospectableHost = host.IntrospectableHost
|