ping

package
v0.0.0-...-194d16d Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Res

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

func (*Res) String

func (r *Res) String() string

type Target

type Target struct {
	Protocol string        `validate:"nonzero, regexp=^(tcp|udp)$"`
	Host     string        `validate:"nonzero"`
	Port     int           `validate:"min=0, max=65535"`
	Timeout  time.Duration `validate:"min=0"`
	Seq      int           `validate:"min=0"`
}

func (*Target) Dial

func (t *Target) Dial() (Res, error)

func (*Target) IsValid

func (t *Target) IsValid() bool

Jump to

Keyboard shortcuts

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