ping

package
v6.0.19+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "/ipfs/ping/1.0.0"
View Source
const PingSize = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type PingService

type PingService struct {
	Host host.Host
}

func NewPingService

func NewPingService(h host.Host) *PingService

func (*PingService) Ping

func (ps *PingService) Ping(ctx context.Context, p peer.ID) (<-chan time.Duration, error)

func (*PingService) PingHandler

func (p *PingService) PingHandler(s inet.Stream)

Jump to

Keyboard shortcuts

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