net

package
v0.0.0-...-89b553b Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingChecker

type PingChecker struct {
	Dests     []string
	RawSocket bool
}

func NewPingChecker

func NewPingChecker(dest []string, rawSocket bool) PingChecker

func (PingChecker) CheckRemoteConnectivity

func (pc PingChecker) CheckRemoteConnectivity(ctx context.Context, logger log.Logger) (bool, error)

func (PingChecker) WaitForRemoteConnectivity

func (pc PingChecker) WaitForRemoteConnectivity(ctx context.Context, logger log.Logger) error

Jump to

Keyboard shortcuts

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