pinger

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 7 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(ctx context.Context, 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