package ping

Import Path
	github.com/libp2p/go-libp2p/p2p/protocol/ping (on go.dev)

Dependency Relation
	imports 13 packages, and imported by 2 packages

Involved Source Files ping.go
Package-Level Type Names (total 2)
/* sort by: | */
Host host.Host (*PingService) Ping(ctx context.Context, p peer.ID) <-chan Result (*PingService) PingHandler(s network.Stream) func NewPingService(h host.Host) *PingService
Result is a result of a ping attempt, either an RTT or an error. Error error RTT time.Duration func Ping(ctx context.Context, h host.Host, p peer.ID) <-chan Result func (*PingService).Ping(ctx context.Context, p peer.ID) <-chan Result
Package-Level Functions (total 2)
Ping pings the remote peer until the context is canceled, returning a stream of RTTs or errors.
Package-Level Constants (total 3)
const ID = "/ipfs/ping/1.0.0"
const PingSize = 32
const ServiceName = "libp2p.ping"