host

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 2 Imported by: 589 modules, 1,056 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/host.

Package host provides the core Host interface for libp2p.

Host represents a single libp2p node in a peer-to-peer network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfoFromHost

func InfoFromHost(h Host) *peer.AddrInfo

InfoFromHost returns a peer.AddrInfo struct with the Host's ID and all of its Addrs. Deprecated: use github.com/libp2p/go-libp2p/core/host.InfoFromHost instead

Types

type Host

type Host = host.Host

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). Deprecated: use github.com/libp2p/go-libp2p/core/host.Host instead

type IntrospectableHost added in v0.6.0

type IntrospectableHost = host.IntrospectableHost

IntrospectableHost is implemented by Host implementations that are introspectable, that is, that may have introspection capability. Deprecated: use github.com/libp2p/go-libp2p/core/host.IntrospectableHost instead

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL