pinger

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pinger

type Pinger struct {
	// contains filtered or unexported fields
}

Pinger is a light and stateless component that can ping remote host to receive its NodeID

func NewPinger

func NewPinger(transport network.InternalTransport) *Pinger

func (*Pinger) Ping

func (p *Pinger) Ping(address string, timeout time.Duration) (*host.Host, error)

PingWithTimeout ping remote host with timeout

Jump to

Keyboard shortcuts

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