pinger

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 6 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